@wiajs/core 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cmn.js +3491 -193
- package/dist/core.esm.js +3491 -193
- package/dist/core.js +3334 -35
- package/dist/core.min.js +8 -3
- package/package.json +3 -4
package/dist/core.min.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wia core v1.0.
|
|
2
|
+
* wia core v1.0.5
|
|
3
3
|
* (c) 2015-2023 Sibyl Yu and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
/*!
|
|
7
|
-
* wia core v1.0.
|
|
7
|
+
* wia core v1.0.5
|
|
8
8
|
* (c) 2015-2023 Sibyl Yu and contributors
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
*/
|
|
11
|
-
var t,e;t=this,e=function(t){"use strict";var e=function(){function t(){}var e=t.prototype;return e.post=function(t,e){return new Promise((function(r,n){var o=$.getXhr();o.onreadystatechange=function(){4===o.readyState&&(200===o.status?r(o.responseText):n(new Error(o.statusText),o.responseText))},o.open("POST",t,!0);var a=e;"object"==typeof e&&(a=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r+"="+t[r]);return e.sort().join("&")}(e)),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(a)}))},e.postForm=function(t,e){return new Promise((function(r,n){var o=$.getXhr();o.onreadystatechange=function(){4===o.readyState&&(200===o.status?r(null,o.responseText):n(new Error(o.status),o.responseText))},o.open("POST",t,!0),o.send(e)}))},e.get=function(t,e){return $.get(t,e)},t}();function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r(e)?e:String(e)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t){return t<0?-1:0===t?0:1}function p(t,e,r){return(1-r)*t+r*e}function m(t){return(t%=360)<0&&(t+=360),t}function h(t,e){return[t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2]]}var v=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],y=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],g=[95.047,100,108.883];function b(t,e,r){return(255<<24|(255&t)<<16|(255&e)<<8|255&r)>>>0}function w(t){return b(O(t[0]),O(t[1]),O(t[2]))}function C(t){return t>>16&255}function k(t){return t>>8&255}function M(t){return 255&t}function A(t){return 116*(e=function(t){return h([E(C(t)),E(k(t)),E(M(t))],v)}(t)[1]/100,e>216/24389?Math.pow(e,1/3):(903.2962962962963*e+16)/116)-16;var e}function S(t){return 100*((r=(e=(t+16)/116)*e*e)>216/24389?r:(116*e-16)/903.2962962962963);var e,r}function E(t){var e=t/255;return e<=.040449936?e/12.92*100:100*Math.pow((e+.055)/1.055,2.4)}function O(t){var e,r,n,o,a=t/100;return e=a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055,r=0,n=255,(o=Math.round(255*e))<r?r:o>n?n:o}var L=function(){function t(t,e,r,n,o,a,i,s,c,u){this.n=t,this.aw=e,this.nbb=r,this.ncb=n,this.c=o,this.nc=a,this.rgbD=i,this.fl=s,this.fLRoot=c,this.z=u}return t.make=function(e,r,n,o,a){void 0===e&&(e=g),void 0===r&&(r=200/Math.PI*S(50)/100),void 0===n&&(n=50),void 0===o&&(o=2),void 0===a&&(a=!1);var i=e,s=.401288*i[0]+.650173*i[1]+-.051461*i[2],c=-.250268*i[0]+1.204414*i[1]+.045854*i[2],u=-.002079*i[0]+.048952*i[1]+.953127*i[2],f=.8+o/10,l=f>=.9?p(.59,.69,10*(f-.9)):p(.525,.59,10*(f-.8)),d=a?1:f*(1-1/3.6*Math.exp((-r-42)/92)),m=f,h=[(d=d>1?1:d<0?0:d)*(100/s)+1-d,d*(100/c)+1-d,d*(100/u)+1-d],v=1/(5*r+1),y=v*v*v*v,b=1-y,w=y*r+.1*b*b*Math.cbrt(5*r),C=S(n)/e[1],k=1.48+Math.sqrt(C),M=.725/Math.pow(C,.2),A=M,E=[Math.pow(w*h[0]*s/100,.42),Math.pow(w*h[1]*c/100,.42),Math.pow(w*h[2]*u/100,.42)],O=[400*E[0]/(E[0]+27.13),400*E[1]/(E[1]+27.13),400*E[2]/(E[2]+27.13)];return new t(C,(2*O[0]+O[1]+.05*O[2])*M,M,A,l,m,h,w,Math.pow(w,.25),k)},t}();L.DEFAULT=L.make();var P=function(){function t(t,e,r,n,o,a,i,s,c){this.hue=t,this.chroma=e,this.j=r,this.q=n,this.m=o,this.s=a,this.jstar=i,this.astar=s,this.bstar=c}var e=t.prototype;return e.distance=function(t){var e=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,o=Math.sqrt(e*e+r*r+n*n);return 1.41*Math.pow(o,.63)},t.fromInt=function(e){return t.fromIntInViewingConditions(e,L.DEFAULT)},t.fromIntInViewingConditions=function(e,r){var n=(65280&e)>>8,o=255&e,a=E((16711680&e)>>16),i=E(n),s=E(o),c=.41233895*a+.35762064*i+.18051042*s,u=.2126*a+.7152*i+.0722*s,f=.01932141*a+.11916382*i+.95034478*s,l=.401288*c+.650173*u-.051461*f,p=-.250268*c+1.204414*u+.045854*f,m=-.002079*c+.048952*u+.953127*f,h=r.rgbD[0]*l,v=r.rgbD[1]*p,y=r.rgbD[2]*m,g=Math.pow(r.fl*Math.abs(h)/100,.42),b=Math.pow(r.fl*Math.abs(v)/100,.42),w=Math.pow(r.fl*Math.abs(y)/100,.42),C=400*d(h)*g/(g+27.13),k=400*d(v)*b/(b+27.13),M=400*d(y)*w/(w+27.13),A=(11*C+-12*k+M)/11,S=(C+k-2*M)/9,O=(20*C+20*k+21*M)/20,$=(40*C+20*k+M)/20,L=180*Math.atan2(S,A)/Math.PI,P=L<0?L+360:L>=360?L-360:L,T=P*Math.PI/180,x=$*r.nbb,I=100*Math.pow(x/r.aw,r.c*r.z),j=4/r.c*Math.sqrt(I/100)*(r.aw+4)*r.fLRoot,R=P<20.14?P+360:P,H=5e4/13*(.25*(Math.cos(R*Math.PI/180+2)+3.8))*r.nc*r.ncb*Math.sqrt(A*A+S*S)/(O+.305),q=Math.pow(H,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),D=q*Math.sqrt(I/100),z=D*r.fLRoot,_=50*Math.sqrt(q*r.c/(r.aw+4)),F=(1+100*.007)*I/(1+.007*I),B=1/.0228*Math.log(1+.0228*z);return new t(P,D,I,j,z,_,F,B*Math.cos(T),B*Math.sin(T))},t.fromJch=function(e,r,n){return t.fromJchInViewingConditions(e,r,n,L.DEFAULT)},t.fromJchInViewingConditions=function(e,r,n,o){var a=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,i=r*o.fLRoot,s=r/Math.sqrt(e/100),c=50*Math.sqrt(s*o.c/(o.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),l=1/.0228*Math.log(1+.0228*i);return new t(n,r,e,a,i,c,f,l*Math.cos(u),l*Math.sin(u))},t.fromUcs=function(e,r,n){return t.fromUcsInViewingConditions(e,r,n,L.DEFAULT)},t.fromUcsInViewingConditions=function(e,r,n,o){var a=r,i=n,s=Math.sqrt(a*a+i*i),c=(Math.exp(.0228*s)-1)/.0228/o.fLRoot,u=Math.atan2(i,a)*(180/Math.PI);u<0&&(u+=360);var f=e/(1-.007*(e-100));return t.fromJchInViewingConditions(f,c,u,o)},e.toInt=function(){return this.viewed(L.DEFAULT)},e.viewed=function(t){var e,r,n,o,a,i,s,c=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),u=Math.pow(c/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),f=this.hue*Math.PI/180,l=.25*(Math.cos(f+2)+3.8),p=t.aw*Math.pow(this.j/100,1/t.c/t.z),m=l*(5e4/13)*t.nc*t.ncb,h=p/t.nbb,v=Math.sin(f),g=Math.cos(f),w=23*(h+.305)*u/(23*m+11*u*g+108*u*v),C=w*g,k=w*v,M=(460*h+451*C+288*k)/1403,A=(460*h-891*C-261*k)/1403,S=(460*h-220*C-6300*k)/1403,E=Math.max(0,27.13*Math.abs(M)/(400-Math.abs(M))),$=d(M)*(100/t.fl)*Math.pow(E,1/.42),L=Math.max(0,27.13*Math.abs(A)/(400-Math.abs(A))),P=d(A)*(100/t.fl)*Math.pow(L,1/.42),T=Math.max(0,27.13*Math.abs(S)/(400-Math.abs(S))),x=d(S)*(100/t.fl)*Math.pow(T,1/.42),I=$/t.rgbD[0],j=P/t.rgbD[1],R=x/t.rgbD[2];return e=1.86206786*I-1.01125463*j+.14918677*R,r=.38752654*I+.62144744*j-.00897398*R,n=-.0158415*I-.03412294*j+1.04996444*R,a=(o=y)[0][0]*e+o[0][1]*r+o[0][2]*n,i=o[1][0]*e+o[1][1]*r+o[1][2]*n,s=o[2][0]*e+o[2][1]*r+o[2][2]*n,b(O(a),O(i),O(s))},t}(),T=function(){function t(){}return t.sanitizeRadians=function(t){return(t+8*Math.PI)%(2*Math.PI)},t.trueDelinearized=function(t){var e=t/100;return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)},t.chromaticAdaptation=function(t){var e=Math.pow(Math.abs(t),.42);return 400*d(t)*e/(e+27.13)},t.hueOf=function(e){var r=h(e,t.SCALED_DISCOUNT_FROM_LINRGB),n=t.chromaticAdaptation(r[0]),o=t.chromaticAdaptation(r[1]),a=t.chromaticAdaptation(r[2]),i=(11*n+-12*o+a)/11,s=(n+o-2*a)/9;return Math.atan2(s,i)},t.areInCyclicOrder=function(e,r,n){return t.sanitizeRadians(r-e)<t.sanitizeRadians(n-e)},t.intercept=function(t,e,r){return(e-t)/(r-t)},t.lerpPoint=function(t,e,r){return[t[0]+(r[0]-t[0])*e,t[1]+(r[1]-t[1])*e,t[2]+(r[2]-t[2])*e]},t.setCoordinate=function(e,r,n,o){var a=t.intercept(e[o],r,n[o]);return t.lerpPoint(e,a,n)},t.isBounded=function(t){return 0<=t&&t<=100},t.nthVertex=function(e,r){var n=t.Y_FROM_LINRGB[0],o=t.Y_FROM_LINRGB[1],a=t.Y_FROM_LINRGB[2],i=r%4<=1?0:100,s=r%2==0?0:100;if(r<4){var c=i,u=s,f=(e-c*o-u*a)/n;return t.isBounded(f)?[f,c,u]:[-1,-1,-1]}if(r<8){var l=i,d=s,p=(e-d*n-l*a)/o;return t.isBounded(p)?[d,p,l]:[-1,-1,-1]}var m=i,h=s,v=(e-m*n-h*o)/a;return t.isBounded(v)?[m,h,v]:[-1,-1,-1]},t.bisectToSegment=function(e,r){for(var n=[-1,-1,-1],o=n,a=0,i=0,s=!1,c=!0,u=0;u<12;u++){var f=t.nthVertex(e,u);if(!(f[0]<0)){var l=t.hueOf(f);s?(c||t.areInCyclicOrder(a,l,i))&&(c=!1,t.areInCyclicOrder(a,r,l)?(o=f,i=l):(n=f,a=l)):(n=f,o=f,a=l,i=l,s=!0)}}return[n,o]},t.midpoint=function(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]},t.criticalPlaneBelow=function(t){return Math.floor(t-.5)},t.criticalPlaneAbove=function(t){return Math.ceil(t-.5)},t.bisectToLimit=function(e,r){for(var n=t.bisectToSegment(e,r),o=n[0],a=t.hueOf(o),i=n[1],s=0;s<3;s++)if(o[s]!==i[s]){var c=-1,u=255;o[s]<i[s]?(c=t.criticalPlaneBelow(t.trueDelinearized(o[s])),u=t.criticalPlaneAbove(t.trueDelinearized(i[s]))):(c=t.criticalPlaneAbove(t.trueDelinearized(o[s])),u=t.criticalPlaneBelow(t.trueDelinearized(i[s])));for(var f=0;f<8&&!(Math.abs(u-c)<=1);f++){var l=Math.floor((c+u)/2),d=t.CRITICAL_PLANES[l],p=t.setCoordinate(o,d,i,s),m=t.hueOf(p);t.areInCyclicOrder(a,r,m)?(i=p,u=l):(o=p,a=m,c=l)}}return t.midpoint(o,i)},t.inverseChromaticAdaptation=function(t){var e=Math.abs(t),r=Math.max(0,27.13*e/(400-e));return d(t)*Math.pow(r,1/.42)},t.findResultByJ=function(e,r,n){for(var o=11*Math.sqrt(n),a=L.DEFAULT,i=1/Math.pow(1.64-Math.pow(.29,a.n),.73),s=.25*(Math.cos(e+2)+3.8)*(5e4/13)*a.nc*a.ncb,c=Math.sin(e),u=Math.cos(e),f=0;f<5;f++){var l=o/100,d=0===r||0===o?0:r/Math.sqrt(l),p=Math.pow(d*i,1/.9),m=a.aw*Math.pow(l,1/a.c/a.z)/a.nbb,v=23*(m+.305)*p/(23*s+11*p*u+108*p*c),y=v*u,g=v*c,b=(460*m+451*y+288*g)/1403,C=(460*m-891*y-261*g)/1403,k=(460*m-220*y-6300*g)/1403,M=h([t.inverseChromaticAdaptation(b),t.inverseChromaticAdaptation(C),t.inverseChromaticAdaptation(k)],t.LINRGB_FROM_SCALED_DISCOUNT);if(M[0]<0||M[1]<0||M[2]<0)return 0;var A=t.Y_FROM_LINRGB[0],S=t.Y_FROM_LINRGB[1],E=t.Y_FROM_LINRGB[2],O=A*M[0]+S*M[1]+E*M[2];if(O<=0)return 0;if(4===f||Math.abs(O-n)<.002)return M[0]>100.01||M[1]>100.01||M[2]>100.01?0:w(M);o-=(O-n)*o/(2*O)}return 0},t.solveToInt=function(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return function(t){var e=O(S(t));return b(e,e,e)}(n);var o=(e=m(e))/180*Math.PI,a=S(n),i=t.findResultByJ(o,r,a);return 0!==i?i:w(t.bisectToLimit(a,o))},t.solveToCam=function(e,r,n){return P.fromInt(t.solveToInt(e,r,n))},t}();T.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],T.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],T.Y_FROM_LINRGB=[.2126,.7152,.0722],T.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var x=function(){e.from=function(t,r,n){return new e(T.solveToInt(t,r,n))},e.fromInt=function(t){return new e(t)};var t=e.prototype;function e(t){this.argb=t;var e=P.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=A(t),this.argb=t}return t.toInt=function(){return this.argb},t.setInternalState=function(t){var e=P.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=A(t),this.argb=t},a(e,[{key:"hue",get:function(){return this.internalHue},set:function(t){this.setInternalState(T.solveToInt(t,this.internalChroma,this.internalTone))}},{key:"chroma",get:function(){return this.internalChroma},set:function(t){this.setInternalState(T.solveToInt(this.internalHue,t,this.internalTone))}},{key:"tone",get:function(){return this.internalTone},set:function(t){this.setInternalState(T.solveToInt(this.internalHue,this.internalChroma,t))}}]),e}(),I=function(){function t(){}return t.harmonize=function(t,e){var r,n,o,a=x.fromInt(t),i=x.fromInt(e),s=(n=a.hue,o=i.hue,180-Math.abs(Math.abs(n-o)-180)),c=Math.min(.5*s,15),u=m(a.hue+c*(r=a.hue,m(i.hue-r)<=180?1:-1));return x.from(u,a.chroma,a.tone).toInt()},t.hctHue=function(e,r,n){var o=t.cam16Ucs(e,r,n),a=P.fromInt(o),i=P.fromInt(e);return x.from(a.hue,i.chroma,A(e)).toInt()},t.cam16Ucs=function(t,e,r){var n=P.fromInt(t),o=P.fromInt(e),a=n.jstar,i=n.astar,s=n.bstar,c=a+(o.jstar-a)*r,u=i+(o.astar-i)*r,f=s+(o.bstar-s)*r;return P.fromUcs(c,u,f).toInt()},t}(),j=function(){function t(t,e){this.hue=t,this.chroma=e,this.cache=new Map}return t.fromInt=function(e){var r=x.fromInt(e);return t.fromHueAndChroma(r.hue,r.chroma)},t.fromHueAndChroma=function(e,r){return new t(e,r)},t.prototype.tone=function(t){var e=this.cache.get(t);return void 0===e&&(e=x.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e},t}(),R=function(){function t(t,e){var r=x.fromInt(t),n=r.hue,o=r.chroma;e?(this.a1=j.fromHueAndChroma(n,o),this.a2=j.fromHueAndChroma(n,o/3),this.a3=j.fromHueAndChroma(n+60,o/2),this.n1=j.fromHueAndChroma(n,Math.min(o/12,4)),this.n2=j.fromHueAndChroma(n,Math.min(o/6,8))):(this.a1=j.fromHueAndChroma(n,Math.max(48,o)),this.a2=j.fromHueAndChroma(n,16),this.a3=j.fromHueAndChroma(n+60,24),this.n1=j.fromHueAndChroma(n,4),this.n2=j.fromHueAndChroma(n,8)),this.error=j.fromHueAndChroma(25,84)}return t.of=function(e){return new t(e,!1)},t.contentOf=function(e){return new t(e,!0)},t.fromColors=function(e){return t.createPaletteFromColors(!1,e)},t.contentFromColors=function(e){return t.createPaletteFromColors(!0,e)},t.createPaletteFromColors=function(e,r){var n=new t(r.primary,e);if(r.secondary){var o=new t(r.secondary,e);n.a2=o.a1}if(r.tertiary){var a=new t(r.tertiary,e);n.a3=a.a1}if(r.error){var i=new t(r.error,e);n.error=i.a1}if(r.neutral){var s=new t(r.neutral,e);n.n1=s.n1}if(r.neutralVariant){var c=new t(r.neutralVariant,e);n.n2=c.n2}return n},t}(),H=function(){function t(t){this.props=t}return t.light=function(e){return t.lightFromCorePalette(R.of(e))},t.dark=function(e){return t.darkFromCorePalette(R.of(e))},t.lightContent=function(e){return t.lightFromCorePalette(R.contentOf(e))},t.darkContent=function(e){return t.darkFromCorePalette(R.contentOf(e))},t.lightFromCorePalette=function(e){return new t({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(99),onBackground:e.n1.tone(10),surface:e.n1.tone(99),onSurface:e.n1.tone(10),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})},t.darkFromCorePalette=function(e){return new t({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(80),background:e.n1.tone(10),onBackground:e.n1.tone(90),surface:e.n1.tone(10),onSurface:e.n1.tone(90),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})},t.prototype.toJSON=function(){return u({},this.props)},a(t,[{key:"primary",get:function(){return this.props.primary}},{key:"onPrimary",get:function(){return this.props.onPrimary}},{key:"primaryContainer",get:function(){return this.props.primaryContainer}},{key:"onPrimaryContainer",get:function(){return this.props.onPrimaryContainer}},{key:"secondary",get:function(){return this.props.secondary}},{key:"onSecondary",get:function(){return this.props.onSecondary}},{key:"secondaryContainer",get:function(){return this.props.secondaryContainer}},{key:"onSecondaryContainer",get:function(){return this.props.onSecondaryContainer}},{key:"tertiary",get:function(){return this.props.tertiary}},{key:"onTertiary",get:function(){return this.props.onTertiary}},{key:"tertiaryContainer",get:function(){return this.props.tertiaryContainer}},{key:"onTertiaryContainer",get:function(){return this.props.onTertiaryContainer}},{key:"error",get:function(){return this.props.error}},{key:"onError",get:function(){return this.props.onError}},{key:"errorContainer",get:function(){return this.props.errorContainer}},{key:"onErrorContainer",get:function(){return this.props.onErrorContainer}},{key:"background",get:function(){return this.props.background}},{key:"onBackground",get:function(){return this.props.onBackground}},{key:"surface",get:function(){return this.props.surface}},{key:"onSurface",get:function(){return this.props.onSurface}},{key:"surfaceVariant",get:function(){return this.props.surfaceVariant}},{key:"onSurfaceVariant",get:function(){return this.props.onSurfaceVariant}},{key:"outline",get:function(){return this.props.outline}},{key:"outlineVariant",get:function(){return this.props.outlineVariant}},{key:"shadow",get:function(){return this.props.shadow}},{key:"scrim",get:function(){return this.props.scrim}},{key:"inverseSurface",get:function(){return this.props.inverseSurface}},{key:"inverseOnSurface",get:function(){return this.props.inverseOnSurface}},{key:"inversePrimary",get:function(){return this.props.inversePrimary}}]),t}();function q(t){for(var e,r=C(t),n=k(t),o=M(t),a=[r.toString(16),n.toString(16),o.toString(16)],i=l(a.entries());!(e=i()).done;){var s=e.value,c=s[0],u=s[1];1===u.length&&(a[c]="0"+u)}return"#"+a.join("")}function D(t){var e=3===(t=t.replace("#","")).length,r=6===t.length,n=8===t.length;if(!e&&!r&&!n)throw new Error("unexpected hex "+t);var o=0,a=0,i=0;return e?(o=z(t.slice(0,1).repeat(2)),a=z(t.slice(1,2).repeat(2)),i=z(t.slice(2,3).repeat(2))):r?(o=z(t.slice(0,2)),a=z(t.slice(2,4)),i=z(t.slice(4,6))):n&&(o=z(t.slice(2,4)),a=z(t.slice(4,6)),i=z(t.slice(6,8))),(255<<24|(255&o)<<16|(255&a)<<8|255&i)>>>0}function z(t){return parseInt(t,16)}function _(t,e){void 0===e&&(e=[]);var r=R.of(t);return{source:t,schemes:{light:H.light(t),dark:H.dark(t)},palettes:{primary:r.a1,secondary:r.a2,tertiary:r.a3,neutral:r.n1,neutralVariant:r.n2,error:r.error},customColors:e.map((function(e){return function(t,e){var r=e.value,n=r,o=t;e.blend&&(r=I.harmonize(n,o));var a=R.of(r).a1;return{color:e,value:r,light:{color:a.tone(40),onColor:a.tone(100),colorContainer:a.tone(90),onColorContainer:a.tone(10)},dark:{color:a.tone(80),onColor:a.tone(20),colorContainer:a.tone(30),onColorContainer:a.tone(90)}}}(t,e)}))}}function F(t){var e=Math.round,r=t.length,n={};return"rgb"===t.slice(0,3).toLowerCase()?(t=t.replace(" ","").split(","),n[0]=parseInt(t[0].slice("a"===t[3].toLowerCase()?5:4),10),n[1]=parseInt(t[1],10),n[2]=parseInt(t[2],10),n[3]=t[3]?parseFloat(t[3]):-1):(t=r<6?parseInt(String(t[1])+t[1]+t[2]+t[2]+t[3]+t[3]+(r>4?String(t[4])+t[4]:""),16):parseInt(t.slice(1),16),n[0]=t>>16&255,n[1]=t>>8&255,n[2]=255&t,n[3]=9===r||5===r?e((t>>24&255)/255*1e4)/1e4:-1),n}function B(t,e,r){void 0===r&&(r=.5);var n=Math.round;t=t.trim(),e=e.trim(),r=r<0?-1*r:r;var o=F(t),a=F(e);return"r"===e[0]?"rgb"+("a"===e[3]?"a(":"(")+n((a[0]-o[0])*r+o[0])+","+n((a[1]-o[1])*r+o[1])+","+n((a[2]-o[2])*r+o[2])+(o[3]<0&&a[3]<0?"":","+(o[3]>-1&&a[3]>-1?n(1e4*((a[3]-o[3])*r+o[3]))/1e4:a[3]<0?o[3]:a[3]))+")":"#"+(4294967296+16777216*(o[3]>-1&&a[3]>-1?n(255*((a[3]-o[3])*r+o[3])):a[3]>-1?n(255*a[3]):o[3]>-1?n(255*o[3]):255)+65536*n((a[0]-o[0])*r+o[0])+256*n((a[1]-o[1])*r+o[1])+n((a[2]-o[2])*r+o[2])).toString(16).slice(o[3]>-1||a[3]>-1?1:3)}var N=1,U={uniqueNumber:function(){return N+=1},id:function(t,e){return void 0===t&&(t="xxxxxxxxxx"),void 0===e&&(e="0123456789abcdef"),$.uid(t,e)},mdPreloaderContent:'\n\t\t<span class="preloader-inner">\n\t\t\t<svg viewBox="0 0 36 36">\n\t\t\t\t<circle cx="18" cy="18" r="16"></circle>\n\t\t\t</svg>\n </span>\n '.trim(),iosPreloaderContent:('\n\t\t<span class="preloader-inner">\n\t\t\t'+[0,1,2,3,4,5,6,7].map((function(){return'<span class="preloader-inner-line"></span>'})).join("")+"\n\t\t</span>\n ").trim(),pcPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-circle"></span>\n </span>\n',eventNameToColonCase:function(t){var e;return t.split("").map((function(t,r){return t.match(/[A-Z]/)&&0!==r&&!e?(e=!0,":"+t.toLowerCase()):t.toLowerCase()})).join("")},deleteProps:function(t){$.deleteProps(t)},requestAnimationFrame:function(t){return $.requestAnimationFrame(t)},cancelAnimationFrame:function(t){return $.cancelAnimationFrame(t)},nextTick:function(t,e){return void 0===e&&(e=0),$.nextTick(t,e)},nextFrame:function(t){return $.nextFrame(t)},now:function(){return Date.now()},parseUrlQuery:function(t){return $.urlParam(t)},getTranslate:function(t,e){return void 0===e&&(e="x"),$.getTranslate(t,e)},serializeObject:function(t,e){if(void 0===e&&(e=[]),"string"==typeof t)return t;var r,n=[];function o(t){if(e.length>0){for(var r="",n=0;n<e.length;n+=1)r+=0===n?e[n]:"["+encodeURIComponent(e[n])+"]";return r+"["+encodeURIComponent(t)+"]"}return encodeURIComponent(t)}function a(t){return encodeURIComponent(t)}return Object.keys(t).forEach((function(i){var s;if(Array.isArray(t[i])){s=[];for(var c=0;c<t[i].length;c+=1)Array.isArray(t[i][c])||"object"!=typeof t[i][c]?s.push(o(i)+"[]="+a(t[i][c])):((r=e.slice()).push(i),r.push(String(c)),s.push(U.serializeObject(t[i][c],r)));s.length>0&&n.push(s.join("&"))}else null===t[i]||""===t[i]?n.push(o(i)+"="):"object"==typeof t[i]?((r=e.slice()).push(i),""!==(s=U.serializeObject(t[i],r))&&n.push(s)):void 0!==t[i]&&""!==t[i]?n.push(o(i)+"="+a(t[i])):""===t[i]&&n.push(o(i))})),n.join("&")},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},merge:function(){var t;return(t=$).merge.apply(t,arguments)},extend:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r[0];return r.splice(0,1),(t=$).assign.apply(t,[o].concat(r))},bindMethods:function(t,e){Object.keys(e).forEach((function(r){U.isObject(e[r])&&Object.keys(e[r]).forEach((function(n){"function"==typeof e[r][n]&&(e[r][n]=e[r][n].bind(t))})),t[r]=e[r]}))},flattenArray:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){for(var t=[],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach((function(e){Array.isArray(e)?t.push.apply(t,flattenArray.apply(void 0,e)):t.push(e)})),t})),colorHexToRgb:function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?r.slice(1).map((function(t){return parseInt(t,16)})):null},colorRgbToHex:function(t,e,r){return"#"+[t,e,r].map((function(t){var e=t.toString(16);return 1===e.length?"0"+e:e})).join("")},colorRgbToHsl:function(t,e,r){t/=255,e/=255,r/=255;var n,o=Math.max(t,e,r),a=Math.min(t,e,r),i=o-a;0===i?n=0:o===t?n=(e-r)/i%6:o===e?n=(r-t)/i+2:o===r&&(n=(t-e)/i+4);var s=(a+o)/2;return n<0&&(n=6+n),[60*n,0===i?0:i/(1-Math.abs(2*s-1)),s]},colorHslToRgb:function(t,e,r){var n,o=(1-Math.abs(2*r-1))*e,a=t/60,i=o*(1-Math.abs(a%2-1));Number.isNaN(t)||void 0===t?n=[0,0,0]:a<=1?n=[o,i,0]:a<=2?n=[i,o,0]:a<=3?n=[0,o,i]:a<=4?n=[0,i,o]:a<=5?n=[i,0,o]:a<=6&&(n=[o,0,i]);var s=r-o/2;return n.map((function(t){return Math.max(0,Math.min(255,Math.round(255*(t+s))))}))},colorHsbToHsl:function(t,e,r){var n={h:t,s:0,l:0},o=e,a=r;return n.l=(2-o)*a/2,n.s=n.l&&n.l<1?o*a/(n.l<.5?2*n.l:2-2*n.l):n.s,[n.h,n.s,n.l]},colorHslToHsb:function(t,e,r){var n={h:t,s:0,b:0},o=r,a=e*(o<.5?o:1-o);return n.b=o+a,n.s=o>0?2*a/n.b:n.s,[n.h,n.s,n.b]},getShadeTintColors:function(t){var e=colorRgbToHsl.apply(void 0,t),r=[e[0],e[1],Math.max(0,e[2]-.08)],n=[e[0],e[1],Math.max(0,e[2]+.08)];return{shade:colorRgbToHex.apply(void 0,colorHslToRgb.apply(void 0,r)),tint:colorRgbToHex.apply(void 0,colorHslToRgb.apply(void 0,n))}},colorThemeCSSProperties:function(){for(var t,e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(1===n.length?(t=n[0],e=U.colorHexToRgb(t)):3===n.length&&(e=n,t=U.colorRgbToHex.apply(U,e)),!e)return{};var a=function(t){void 0===t&&(t="");var e=_(D("#"+t.replace("#","")));[.05,.08,.11,.12,.14].forEach((function(t,r){e.schemes.light.props["surface"+(r+1)]=D(B(q(e.schemes.light.props.surface),q(e.schemes.light.props.primary),t)),e.schemes.dark.props["surface"+(r+1)]=D(B(q(e.schemes.dark.props.surface),q(e.schemes.dark.props.primary),t))}));var r=function(t){return t.split("").map((function(t){return t.toUpperCase()===t&&"-"!==t&&"7"!==t?"-"+t.toLowerCase():t})).join("")},n=function(t){return["tertiary","shadow","scrim","error","background"].filter((function(e){return t.toLowerCase().includes(e)})).length>0},o={},a={};return Object.keys(e.schemes.light.props).forEach((function(t){n(t)||(o[r("--f7-md-"+t)]=q(e.schemes.light.props[t]))})),Object.keys(e.schemes.dark.props).forEach((function(t){n(t)||(a[r("--f7-md-"+t)]=q(e.schemes.dark.props[t]))})),{light:o,dark:a}}(t),i=a.light,s=a.dark,c=getShadeTintColors(e),f=getShadeTintColors(colorHexToRgb(i["--f7-md-primary"])),l=getShadeTintColors(colorHexToRgb(s["--f7-md-primary"]));return Object.keys(i).forEach((function(t){t.includes("surface-")&&(i[t+"-rgb"]=colorHexToRgb(i[t]))})),Object.keys(s).forEach((function(t){t.includes("surface-")&&(s[t+"-rgb"]=colorHexToRgb(s[t]))})),{ios:{"--f7-theme-color":"var(--f7-ios-primary)","--f7-theme-color-rgb":"var(--f7-ios-primary-rgb)","--f7-theme-color-shade":"var(--f7-ios-primary-shade)","--f7-theme-color-tint":"var(--f7-ios-primary-tint)"},md:{"--f7-theme-color":"var(--f7-md-primary)","--f7-theme-color-rgb":"var(--f7-md-primary-rgb)","--f7-theme-color-shade":"var(--f7-md-primary-shade)","--f7-theme-color-tint":"var(--f7-md-primary-tint)"},light:u({"--f7-ios-primary":t,"--f7-ios-primary-shade":c.shade,"--f7-ios-primary-tint":c.tint,"--f7-ios-primary-rgb":e.join(", "),"--f7-md-primary-shade":f.shade,"--f7-md-primary-tint":f.tint,"--f7-md-primary-rgb":colorHexToRgb(i["--f7-md-primary"]).join(", ")},i),dark:u({"--f7-md-primary-shade":l.shade,"--f7-md-primary-tint":l.tint,"--f7-md-primary-rgb":colorHexToRgb(s["--f7-md-primary"]).join(", ")},s)}},colorThemeCSSStyles:function(t){void 0===t&&(t={});var e=function(t){var e="";return Object.keys(t).forEach((function(r){e+=r+":"+t[r]+";"})),e},r=colorThemeCSSProperties(t.primary),n=[":root{",e(r.light),"--swiper-theme-color:var(--f7-theme-color);"].concat(Object.keys(t).map((function(e){return"--f7-color-"+e+": "+t[e]+";"})),["}",".dark{",e(r.dark),"}",".ios, .ios .dark{",e(r.ios),"}",".md, .md .dark{",e(r.md),"}"]).join(""),o={};Object.keys(t).forEach((function(e){var r=t[e];o[e]=colorThemeCSSProperties(r)}));var a="";return Object.keys(t).forEach((function(r){var n=o[r],i=n.light,s=n.dark,c=n.ios,u=n.md,f="\n\t\t\t--f7-ios-primary: #ffffff;\n\t\t\t--f7-ios-primary-shade: #ebebeb;\n\t\t\t--f7-ios-primary-tint: #ffffff;\n\t\t\t--f7-ios-primary-rgb: 255, 255, 255;\n\t\t\t--f7-md-primary-shade: #eee;\n\t\t\t--f7-md-primary-tint: #fff;\n\t\t\t--f7-md-primary-rgb: 255, 255, 255;\n\t\t\t--f7-md-primary: #fff;\n\t\t\t--f7-md-on-primary: #000;\n\t\t\t--f7-md-primary-container: #fff;\n\t\t\t--f7-md-on-primary-container: #000;\n\t\t\t--f7-md-secondary: #fff;\n\t\t\t--f7-md-on-secondary: #000;\n\t\t\t--f7-md-secondary-container: #555;\n\t\t\t--f7-md-on-secondary-container: #fff;\n\t\t\t--f7-md-surface: #fff;\n\t\t\t--f7-md-on-surface: #000;\n\t\t\t--f7-md-surface-variant: #333;\n\t\t\t--f7-md-on-surface-variant: #fff;\n\t\t\t--f7-md-outline: #fff;\n\t\t\t--f7-md-outline-variant: #fff;\n\t\t\t--f7-md-inverse-surface: #000;\n\t\t\t--f7-md-inverse-on-surface: #fff;\n\t\t\t--f7-md-inverse-primary: #000;\n\t\t\t--f7-md-surface-1: #f8f8f8;\n\t\t\t--f7-md-surface-2: #f1f1f1;\n\t\t\t--f7-md-surface-3: #e7e7e7;\n\t\t\t--f7-md-surface-4: #e1e1e1;\n\t\t\t--f7-md-surface-5: #d7d7d7;\n\t\t\t--f7-md-surface-variant-rgb: 51, 51, 51;\n\t\t\t--f7-md-on-surface-variant-rgb: 255, 255, 255;\n\t\t\t--f7-md-surface-1-rgb: 248, 248, 248;\n\t\t\t--f7-md-surface-2-rgb: 241, 241, 241;\n\t\t\t--f7-md-surface-3-rgb: 231, 231, 231;\n\t\t\t--f7-md-surface-4-rgb: 225, 225, 225;\n\t\t\t--f7-md-surface-5-rgb: 215, 215, 215;\n\t\t\t",l="\n\t\t\t--f7-ios-primary: #000;\n\t\t\t--f7-ios-primary-shade: #000;\n\t\t\t--f7-ios-primary-tint: #232323;\n\t\t\t--f7-ios-primary-rgb: 0, 0, 0;\n\t\t\t--f7-md-primary-shade: #000;\n\t\t\t--f7-md-primary-tint: #232323;\n\t\t\t--f7-md-primary-rgb: 0, 0, 0;\n\t\t\t--f7-md-primary: #000;\n\t\t\t--f7-md-on-primary: #fff;\n\t\t\t--f7-md-primary-container: #000;\n\t\t\t--f7-md-on-primary-container: #fff;\n\t\t\t--f7-md-secondary: #000;\n\t\t\t--f7-md-on-secondary: #fff;\n\t\t\t--f7-md-secondary-container: #aaa;\n\t\t\t--f7-md-on-secondary-container: #000;\n\t\t\t--f7-md-surface: #000;\n\t\t\t--f7-md-on-surface: #fff;\n\t\t\t--f7-md-surface-variant: #ccc;\n\t\t\t--f7-md-on-surface-variant: #000;\n\t\t\t--f7-md-outline: #000;\n\t\t\t--f7-md-outline-variant: #000;\n\t\t\t--f7-md-inverse-surface: #fff;\n\t\t\t--f7-md-inverse-on-surface: #000;\n\t\t\t--f7-md-inverse-primary: #fff;\n\t\t\t--f7-md-surface-1: #070707;\n\t\t\t--f7-md-surface-2: #161616;\n\t\t\t--f7-md-surface-3: #232323;\n\t\t\t--f7-md-surface-4: #303030;\n\t\t\t--f7-md-surface-5: #373737;\n\t\t\t--f7-md-surface-variant-rgb: 204, 204, 204;\n\t\t\t--f7-md-on-surface-variant-rgb: 0, 0, 0;\n\t\t\t--f7-md-surface-1-rgb: 7, 7, 7;\n\t\t\t--f7-md-surface-2-rgb: 22, 22, 22;\n\t\t\t--f7-md-surface-3-rgb: 35, 35, 35;\n\t\t\t--f7-md-surface-4-rgb: 48, 48, 48;\n\t\t\t--f7-md-surface-5-rgb: 55, 55, 55;\n\t\t\t",d="white"===r?f:"black"===r?l:e(i),p="white"===r?f:"black"===r?l:e(s);a+=[".color-"+r+" {",d,"--swiper-theme-color: var(--f7-theme-color);","}",".color-"+r+".dark, .color-"+r+" .dark, .dark .color-"+r+" {",p,"--swiper-theme-color: var(--f7-theme-color);","}",".ios .color-"+r+", .ios.color-"+r+", .ios .dark .color-"+r+", .ios .dark.color-"+r+" {",e(c),"}",".md .color-"+r+", .md.color-"+r+", .md .dark .color-"+r+", .md .dark.color-"+r+" {",e(u),"}",".text-color-"+r+" {","--f7-theme-color-text-color: "+t[r]+";","}",".bg-color-"+r+" {","--f7-theme-color-bg-color: "+t[r]+";","}",".border-color-"+r+" {","--f7-theme-color-border-color: "+t[r]+";","}",".ripple-color-"+r+" {","--f7-theme-color-ripple-color: rgba("+i["--f7-ios-primary-rgb"]+", 0.3);","}"].join("")})),""+n+a}},W=function(){function t(t,e,r){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===r&&(r="");var n=this;n.params=t,e?Array.isArray(e)?n.eventsParents=e.filter((function(t){return t})):n.eventsParents=[e]:n.eventsParents=[],n.eventsListeners={},n.pre=r,n.params&&n.params.on&&Object.keys(n.params.on).forEach((function(t){n.on(t,n.params.on[t])}))}var e=t.prototype;return e.on=function(t,e,r){void 0===r&&(r=!1);var n=this;if("function"!=typeof e)return n;var o=r?"unshift":"push";return t.split(" ").forEach((function(t){var r={owner:"",appName:"",handler:e};if(t.includes("app::")){var a=null;if($.isPage(n)?a=n:$.isPage(null==n?void 0:n.page)?a=n.page:$.isPage(null==n?void 0:n.parent)&&(a=n.parent),a&&a.app&&$.isApp(a.app)){r.owner=a.owner,r.appName=a.appName;var i=a.app,s=t.replace("app::","");i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][o](r)}}else n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][o](r)})),n},e.once=function(t,e,r){void 0===r&&(r=!1);var n=this;if("function"!=typeof e)return n;function o(){if(n.off(t,o),o.proxy){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];o.proxy.apply(n,r),delete o.proxy}}return o.proxy=e,n.on(t,o,r)},e.off=function(t,e){var r=this;return r.eventsListeners?(t?t.split(" ").forEach((function(t){if(void 0===e)r.eventsListeners[t]=[];else if(r.eventsListeners[t])for(var n=r.eventsListeners[t],o=n.length-1;o>=0;o--){var a,i=n[o];i.handler!==e&&(null==(a=i.handler)?void 0:a.proxy)!==e||n.splice(o,1)}})):r.eventsListeners={},r):r},e.emit=function(){var t,e,r,n,o,a=this;if(!a.eventsListeners)return a;for(var i=!1,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var f=c[0];if(!f)return a;"string"==typeof f||Array.isArray(f)?(f=f.split(" "),a.pre?(e=[],f.forEach((function(t){e.push("."+t),e.push(""+a.pre+t[0].toUpperCase()+t.substr(1))}))):e=f,r=c.slice(1,c.length),n=a,o=a.eventsParents):(i=f.pop,e=f.events,r=f.data,n=f.context||a,o=f.local?[]:f.parents||a.eventsParents);var l=Array.isArray(e)?e:e.split(" "),d=l.map((function(t){return t.replace(/local::|^[.]/,"")})),p=null;if(i)p=f;else{var m=l.filter((function(t){return!t.match(/^local::|^[.]/)}));null!=m&&m.length&&(p={pop:!0,events:m,context:a,data:r,owner:"",appName:""})}return p&&$.isPage(a)&&(p.owner=null==a?void 0:a.owner,p.appName=null==a?void 0:a.appName),d.forEach((function(t){if(a.eventsListeners&&a.eventsListeners[t]){var e=[];a.eventsListeners[t].forEach((function(r){r.owner&&r.appName?i&&r.owner===t.owner&&r.appName===t.appName&&e.push(r.handler):e.push(r.handler)})),e.forEach((function(t){t.apply(n,r)}))}})),p&&(null==(t=o)?void 0:t.length)>0&&o.forEach((function(t){return t.emit(p)})),a},t}(),V=function(t){function e(e,r,n,o){var a;return(a=t.call(this,null,[e])||this).app=e,a.cfg=e.cfg,a.name=r,a.title=n,a.style=o||"./page/"+r+".css",a.owner="",a.appName="",a.path="",a.view=null,a.dom=null,a.$el=null,a.el=null,a.html="",a.css="",a.js="",a.data={},a.param={},a}c(e,t);var r=e.prototype;return r.load=function(t){this.emit("local::load pageLoad",t),this.emit("pageLoad",this)},r.ready=function(t,e,r){this.init(),this.emit("local::ready",t,e,r),this.emit("pageReady",this)},r.init=function(t){var e=this.view;t=t?$(t):e},r.show=function(t,e){t.qus("[name$=-tp]").hide(),t.qus('a[href=""]').attr("href","javascript:;"),this.reset&&this.reset(),this.emit("local::show",t,e),this.emit("pageShow",this)},r.back=function(t,e){t.qus("[name$=-tp]").hide(),t.qus('a[href=""]').attr("href","javascript:;"),this.emit("local::back",t,e),this.emit("pageBack",this)},r.hide=function(t){this.emit("local::hide",t),this.emit("pageHide",this)},r.unload=function(t){this.emit("local::unload",t),this.emit("pageUnload",this)},e}(W),G=function(t){function e(e,r){var n;return void 0===e&&(e={}),void 0===r&&(r=[]),i(n=t.call(this,e,r)||this).params=e,n}c(e,t);var r=e.prototype;return r.useModuleParams=function(t,e){if(t.params){var r={};Object.keys(t.params).forEach((function(t){void 0!==e[t]&&(r[t]=$.extend({},e[t]))})),$.extend(e,t.params),Object.keys(r).forEach((function(t){$.extend(e[t],r[t])}))}},r.useModulesParams=function(t){var e=this;e.modules&&Object.keys(e.modules).forEach((function(r){var n=e.modules[r];n.params&&$.extend(t,n.params)}))},r.useModule=function(t,e){void 0===t&&(t=""),void 0===e&&(e={});var r=this;if(r.modules){var n="string"==typeof t?r.modules[t]:t;n&&(n.instance&&Object.keys(n.instance).forEach((function(t){var e=n.instance[t];r[t]="function"==typeof e?e.bind(r):e})),n.on&&r.on&&Object.keys(n.on).forEach((function(t){r.on(t,n.on[t])})),n.vnode&&(r.vnodeHooks||(r.vnodeHooks={}),Object.keys(n.vnode).forEach((function(t){Object.keys(n.vnode[t]).forEach((function(e){var o=n.vnode[t][e];r.vnodeHooks[e]||(r.vnodeHooks[e]={}),r.vnodeHooks[e][t]||(r.vnodeHooks[e][t]=[]),r.vnodeHooks[e][t].push(o.bind(r))}))}))),n.create&&n.create.bind(r)(e))}},r.useModules=function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(r){var n=t[r]||{};e.useModule(r,n)}))},e.installModule=function(t){var e=this;e.prototype.modules||(e.prototype.modules={});var r=t.name||Object.keys(e.prototype.modules).length+"_"+$.now();if(e.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach((function(r){e.prototype[r]=t.proto[r]})),t.static&&Object.keys(t.static).forEach((function(r){e[r]=t.static[r]})),t.install){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t.install.apply(e,o)}return e},e.use=function(t){var e=this;if(Array.isArray(t))return t.forEach((function(t){return e.installModule(t)})),e;for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e.installModule.apply(e,[t].concat(n))},a(e,null,[{key:"components",set:function(t){this.use&&this.use(t)}}]),e}(W);function Y(t,e,r){return Y=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},Y.apply(null,arguments)}function J(t){void 0===t&&(t={});var e=t,r=e.defaultSelector,n=e.constructor,o=e.domProp,a=e.app,i=e.addMethods,s={create:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Y(n,a?[a].concat(e):e)},get:function(t){if(void 0===t&&(t=r),t instanceof n)return t;var e=$(t);return 0!==e.length?e[0][o]:void 0},destroy:function(t){var e=s.get(t);if(e&&e.destroy)return e.destroy()}};return i&&Array.isArray(i)&&i.forEach((function(t){s[t]=function(e){void 0===e&&(e=r);for(var n=s.get(e),o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];if(n&&n[t])return n[t].apply(n,a)}})),s}function X(t){void 0===t&&(t={});var e=t,r=e.defaultSelector,n=e.constructor,o=e.app;return $.extend(J({defaultSelector:r,constructor:n,app:o,domProp:"f7Modal"}),{open:function(t,e,r){var a=$(t);if(a.length>1&&r){var i=$(r).parents(".page");i.length&&a.each((function(t){var e=$(t);e.parents(i)[0]===i[0]&&(a=e)}))}if(a.length>1&&(a=a.eq(a.length-1)),a.length){var s=a[0].f7Modal;if(!s){var c=a.dataset();s=new n(o,u({el:a},c))}return s.open(e)}},close:function(t,e,a){void 0===t&&(t=r);var i=$(t);if(i.length){if(i.length>1){var s;if(a){var c=$(a);c.length&&(s=c.parents(i))}i=s&&s.length>0?s:i.eq(i.length-1)}var f=i[0].f7Modal;if(!f){var l=i.dataset();f=new n(o,u({el:i},l))}return f.close(e)}}})}var Q=[];function Z(t){var e=this;return new Promise((function(r,n){var o,a,i,s=e.instance;if(t){if("string"==typeof t){var c=t.match(/([a-z0-9-]*)/i);if(t.indexOf(".")<0&&c&&c[0].length===t.length){if(!s||s&&!s.params.lazyModulesPath)return void n(new Error('Wia: "lazyModulesPath" app parameter must be specified to fetch module by name'));o=s.params.lazyModulesPath+"/"+t+".js"}else o=t}else"function"==typeof t?i=t:a=t;if(i){var u=i(e,!1);if(!u)return void n(new Error("Wia: Can't find Wia component in specified component function"));if(e.prototype.modules&&e.prototype.modules[u.name])return void r();p(u),r()}if(a){var f=a;if(!f)return void n(new Error("Wia: Can't find Wia component in specified component"));if(e.prototype.modules&&e.prototype.modules[f.name])return void r();p(f),r()}if(o){if(Q.indexOf(o)>=0)return void r();Q.push(o);var l=new Promise((function(t,r){e.request.get(o,(function(n){var a="wia_component_loader_callback_"+$.id(),i=document.createElement("script");i.innerHTML="window."+a+" = function (Wia, WiaAutoInstallComponent) {return "+n.trim()+"}",$("head").append(i);var s=window[a];delete window[a],$(i).remove();var c=s(e,!1);c?(e.prototype.modules&&e.prototype.modules[c.name]||p(c),t()):r(new Error("Wia: Can't find Wia component in "+o+" file"))}),(function(t,e){r(t,e)}))})),d=new Promise((function(t){e.request.get(o.replace(".js",s.rtl?".rtl.css":".css"),(function(e){var r=document.createElement("style");r.innerHTML=e,$("head").append(r),t()}),(function(){t()}))}));Promise.all([l,d]).then((function(){r()})).catch((function(t){n(t)}))}}else n(new Error("Wia: Lazy module must be specified"));function p(t){e.use(t),s&&(s.useModuleParams(t,s.params),s.useModule(t))}}))}function K(t,e){for(var r=e||{},n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var i=o||[],s=Object.keys(r).map((function(t){return"_"===t[0]?r[t]?t.replace("_",""):"":t+'="'+r[t]+'"'})).filter((function(t){return!!t})).join(" ");return["path","img","circle","polygon","line","input"].indexOf(t)>=0?("<"+t+" "+s+" />").trim():("<"+t+" "+s+">"+i.filter((function(t){return!!t})).map((function(t){return Array.isArray(t)?t.join(""):t})).join("")+"</"+t+">").trim()}var tt={name:"resize",instance:{getSize:function(){var t=this;if(!t.root[0])return{width:0,height:0,left:0,top:0};var e=t.root.offset(),r=[t.root[0].offsetWidth,t.root[0].offsetHeight,e.left,e.top],n=r[0],o=r[1],a=r[2],i=r[3];return t.width=n,t.height=o,t.left=a,t.top=i,{width:n,height:o,left:a,top:i}}},on:{init:function(){var t=this;t.getSize(),window.addEventListener("resize",(function(){t.emit("resize")}),!1),window.addEventListener("orientationchange",(function(){t.emit("orientationchange")}))},orientationchange:function(){this.device.ipad&&(document.body.scrollLeft=0,setTimeout((function(){document.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}};function et(t){var e,r,n;e=function(e){t.emit({events:"click",data:[e]})},$.support.touch?(document.addEventListener("touchstart",(function(t){r=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY}),!0),document.addEventListener("touchend",(function(t){var o=Math.abs(t.changedTouches[0].clientX-r),a=Math.abs(t.changedTouches[0].clientY-n);o<=5&&a<=5&&e.call(this,t)}),!0)):document.addEventListener("click",e,!0),t.on("click",(function(e){var r=$(e.target),n=r.closest("a");n.length>0&&n.attr("href"),Object.keys(t.modules).forEach((function(n){var o=t.modules[n].clicks;o&&(e.preventF7Router||Object.keys(o).forEach((function(n){var a=r.closest(n).eq(0);a.length>0&&o[n].call(t,a,a.dataset(),e)})))}))}))}var rt={name:"clicks",params:{clicks:{externalLinks:".ext"}},on:{init:function(){et(this)}}},nt={registrations:[],register:function(t,e){var r=this;return"serviceWorker"in window.navigator&&r.serviceWorker.container?new Promise((function(n,o){r.serviceWorker.container.register(t,e?{scope:e}:{}).then((function(t){nt.registrations.push(t),r.emit("serviceWorkerRegisterSuccess",t),n(t)})).catch((function(t){r.emit("serviceWorkerRegisterError",t),o(t)}))})):new Promise((function(t,e){e(new Error("Service worker is not supported"))}))},unregister:function(t){var e,r=this;return"serviceWorker"in window.navigator&&r.serviceWorker.container?(e=t?Array.isArray(t)?t:[t]:nt.registrations,Promise.all(e.map((function(t){return new Promise((function(e,n){t.unregister().then((function(){nt.registrations.indexOf(t)>=0&&nt.registrations.splice(nt.registrations.indexOf(t),1),r.emit("serviceWorkerUnregisterSuccess",t),e()})).catch((function(e){r.emit("serviceWorkerUnregisterError",t,e),n(e)}))}))})))):new Promise((function(t,e){e(new Error("Service worker is not supported"))}))}},ot={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create:function(){var t=this;$.extend(t,{serviceWorker:{container:"serviceWorker"in window.navigator?window.navigator.serviceWorker:void 0,registrations:nt.registrations,register:nt.register.bind(t),unregister:nt.unregister.bind(t)}})},on:{init:function(){if("serviceWorker"in window.navigator){var t=this;if(!(t.device.cordova||window.Capacitor&&window.Capacitor.isNative)&&t.serviceWorker.container){var e=t.params.serviceWorker.path,r=t.params.serviceWorker.scope;!e||Array.isArray(e)&&!e.length||(Array.isArray(e)?e:[e]).forEach((function(e){t.serviceWorker.register(e,r)}))}}}}},at=U.extend,it=U.nextFrame,st=$,ct=st.support,ut=st.device,ft={version:"1.0.1",el:"body",root:"body",theme:"auto",language:window.navigator.language,routes:[],name:"App",lazyModulesPath:null,initOnDeviceReady:!0,darkMode:void 0,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null,colors:{primary:"#007aff",red:"#ff3b30",green:"#4cd964",blue:"#2196f3",pink:"#ff2d55",yellow:"#ffcc00",orange:"#ff9500",purple:"#9c27b0",deeppurple:"#673ab7",lightblue:"#5ac8fa",teal:"#009688",lime:"#cddc39",deeporange:"#ff6b22",white:"#ffffff",black:"#000000"}},lt=function(t){function e(r){var n;if(void 0===r&&(r={}),n=t.call(this,r)||this,e.instance&&"undefined"!=typeof window)throw new Error("App is already initialized and can't be initialized more than once");var o=at({},r),a=i(n);return $.App=e,e.instance=a,a.device=ut,a.support=ct,console.log("App constructor",{Device:ut,Support:ct}),a.useModulesParams(ft),a.params=at(ft,r),r.root&&!r.el&&(a.params.el=r.root),$.isPage=function(t){return t instanceof V},$.isApp=function(t){return t instanceof e},at(a,{owner:a.params.owner,name:a.params.name,id:a.params.owner+"."+a.params.name,version:a.params.version,routes:a.params.routes,language:a.params.language,cfg:a.params.cfg,api:a.params.api,theme:"auto"===a.params.theme?ut.ios?"ios":ut.desktop?"pc":"md":a.params.theme,passedParams:o,online:window.navigator.onLine,colors:a.params.colors,darkMode:a.params.darkMode}),r.store&&(a.params.store=params.store),a.touchEvents={start:ct.touch?"touchstart":ct.pointerEvents?"pointerdown":"mousedown",move:ct.touch?"touchmove":ct.pointerEvents?"pointermove":"mousemove",end:ct.touch?"touchend":ct.pointerEvents?"pointerup":"mouseup"},a.useModules(),a.initData(),a.params.init&&(ut.cordova&&a.params.initOnDeviceReady?$(document).on("deviceready",(function(){a.init()})):a.init()),a||i(n)}c(e,t);var r=e.prototype;return r.load=function(t){this.emit("local::load appLoad",t)},r.show=function(t,e){this.emit("local::show appShow",t,e)},r.hide=function(){this.emit("local::hide appHide")},r.unload=function(){this.emit("local::unload appUnload")},r.setColorTheme=function(t){t&&(this.colors.primary=t,this.setColors())},r.setColors=function(){var t=this;t.colorsStyleEl||(t.colorsStyleEl=document.createElement("style"),document.head.appendChild(t.colorsStyleEl)),t.colorsStyleEl.textContent=t.utils.colorThemeCSSStyles(t.colors)},r.mount=function(t){var e=this,r=$(t||e.params.el).eq(0);at(e,{root:r,$el:r,el:null==r?void 0:r[0],rtl:"rtl"===r.css("direction")}),e.root&&e.root[0]&&(e.root[0].wia=e),e.$el&&e.$el[0]&&(e.$el[0].wia=e),e.el.f7=e;var n="(prefers-color-scheme: dark)",o="(prefers-color-scheme: light)";e.mq={},window.matchMedia&&(e.mq.dark=window.matchMedia(n),e.mq.light=window.matchMedia(o)),e.colorSchemeListener=function(t){var r=t.matches,a=t.media;if(r){var i=document.querySelector("html");a===n?(i.classList.add("dark"),e.darkMode=!0,e.emit("darkModeChange",!0)):a===o&&(i.classList.remove("dark"),e.darkMode=!1,e.emit("darkModeChange",!1))}},e.emit("mount")},r.initData=function(){var t=this;t.data={},t.params.data&&"function"==typeof t.params.data?$.extend(t.data,t.params.data.bind(t)()):t.params.data&&$.extend(t.data,t.params.data),t.methods={},t.params.methods&&Object.keys(t.params.methods).forEach((function(e){"function"==typeof t.params.methods[e]?t.methods[e]=t.params.methods[e].bind(t):t.methods[e]=t.params.methods[e]}))},r.enableAutoDarkTheme=function(){if(window.matchMedia){var t=this,e=document.querySelector("html");t.mq.dark&&t.mq.light&&(t.mq.dark.addListener(t.colorSchemeListener),t.mq.light.addListener(t.colorSchemeListener)),t.mq.dark&&t.mq.dark.matches?(e.classList.add("dark"),t.darkMode=!0,t.emit("darkModeChange",!0)):t.mq.light&&t.mq.light.matches&&(e.classList.remove("dark"),t.darkMode=!1,t.emit("darkModeChange",!1))}},r.disableAutoDarkTheme=function(){if(window.matchMedia){var t=this;t.mq.dark&&t.mq.dark.removeListener(t.colorSchemeListener),t.mq.light&&t.mq.light.removeListener(t.colorSchemeListener)}},r.setDarkMode=function(t){var e=this;"auto"===t?e.enableAutoDarkMode():(e.disableAutoDarkMode(),$("html")[t?"addClass":"removeClass"]("dark"),e.darkMode=t)},r.initAppComponent=function(t){var e=this;e.router.componentLoader(e.params.component,e.params.componentUrl,{componentOptions:{el:e.$el[0]}},(function(r){e.$el=$(r),e.$el[0].wia=e,e.$elComponent=r.f7Component,e.el=e.$el[0],t&&t()}),(function(){}))},r.init=function(t){var e=this;e.setColors(),e.mount(t);var r=function(){if(e.initialized)return e;var t,r,n;e.$el.addClass("framework7-initializing"),e.rtl&&$("html").attr("dir","rtl"),void 0===e.params.darkMode?e.darkMode=$("html").hasClass("dark"):e.setDarkMode(e.params.darkMode),window.addEventListener("offline",(function(){e.online=!1,e.emit("offline"),e.emit("connection",!1)})),window.addEventListener("online",(function(){e.online=!0,e.emit("online"),e.emit("connection",!0)})),e.$el.addClass("framework7-root"),$("html").removeClass("ios md pc").addClass(e.theme),e.params.iosTranslucentBars&&"ios"===e.theme&&$("html").addClass("ios-translucent-bars"),e.params.iosTranslucentModals&&"ios"===e.theme&&$("html").addClass("ios-translucent-modals"),it((function(){e.$el.removeClass("framework7-initializing")})),t=[],r=document.querySelector("html"),n=document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]'),r&&(ut.standalone&&ut.ios&&n&&"black-translucent"===n.content&&t.push("device-full-viewport"),t.push("device-pixel-ratio-"+Math.floor(ut.pixelRatio)),ut.os&&!ut.desktop?t.push("device-"+ut.os):ut.desktop&&(t.push("device-desktop"),ut.os&&t.push("device-"+ut.os)),(ut.cordova||ut.phonegap)&&t.push("device-cordova"),t.forEach((function(t){r.classList.add(t)}))),e.initialized=!0,e.emit("init")};return e.params.component||e.params.componentUrl?e.initAppComponent((function(){r()})):r(),e},r.loadModule=function(t){e.loadModule(t),this[t.name].init&&this[t.name].init()},r.loadModules=function(){return e.loadModules.apply(e,arguments)},r.getVnodeHooks=function(t,e){var r=this;return r.vnodeHooks&&r.vnodeHooks[t]&&r.vnodeHooks[t][e]||[]},a(e,[{key:"$",get:function(){return $}}],[{key:"Dom",get:function(){return $}},{key:"$",get:function(){return $}},{key:"Module",get:function(){return G}},{key:"Event",get:function(){return W}},{key:"Class",get:function(){return G}},{key:"Events",get:function(){return W}}]),e}(G);lt.apps={},lt.jsx=K,lt.ModalMethods=X,lt.ConstructorMethods=J,lt.loadModule=Z,lt.loadModules=function(t){return Promise.all(t.map((function(t){return lt.loadModule(t)})))},lt.support=ct,lt.device=ut,lt.utils=U,lt.use([tt,rt,ot]);var dt,pt,mt,ht,vt={normal:"nor",retina:"ret",srcset:"set",threshold:0},yt=window.innerHeight,gt=kt(),bt=document.body.classList.contains("srcset")||"srcset"in document.createElement("img"),wt=window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI,Ct=function(){function t(t){dt=$.assign({},vt,t)}var e=t.prototype;return e.start=function(t){return["scroll","resize"].forEach((function(e){return t.addEventListener(e,Mt)})),ht=t,this},e.stop=function(){return["scroll","resize"].forEach((function(t){return ht.removeEventListener(t,Mt)})),this},e.update=function(){setTimeout((function(){Et(),St()}),1)},t}();function kt(){return window.scrollY||window.pageYOffset}function Mt(){gt=kt(),pt||(window.requestAnimationFrame((function(){return St()})),pt=!0)}function At(t){var e=gt,r=e+yt,n=function(t){return t.getBoundingClientRect().top+gt}(t),o=n+t.offsetHeight,a=dt.threshold/100*yt;return o>=e-a&&n<=r+a}function St(){if(mt)return yt=window.innerHeight,mt.forEach((function(t){return At(t)&&function(t){if($.emit("lazy:src:before",t),bt&&t.hasAttribute(dt.srcset))t.setAttribute("srcset",t.getAttribute(dt.srcset));else{var e=wt>1&&t.getAttribute(dt.retina)||t.getAttribute(dt.normal);t.setAttribute("src",e),console.log("set src:"+e)}$.emit("lazy:src:after",t),[dt.normal,dt.retina,dt.srcset].forEach((function(e){return t.removeAttribute(e)})),Et()}(t)})),pt=!1,this}function Et(t){return mt=t?Array.prototype.slice.call(t.querySelectorAll("["+dt.normal+"]")):Array.prototype.slice.call(document.querySelectorAll("["+dt.normal+"]")),this}var Ot=[],$t=[],Lt=function(t){function e(e,r){var n,o=i(n=t.call(this,r,[e])||this);return o.params=U.extend({},r),o.opened=!1,i(n)||i(n)}c(e,t);var r=e.prototype;return r.onOpen=function(){var t=this;t.opened=!0,Ot.push(t),$("html").addClass("with-modal-"+t.type.toLowerCase()),t.$el.trigger("modal:open "+t.type.toLowerCase()+":open"),t.emit("local::open modalOpen "+t.type+"Open",t)},r.onOpened=function(){var t=this;t.$el.trigger("modal:opened "+t.type.toLowerCase()+":opened"),t.emit("local::opened modalOpened "+t.type+"Opened",t)},r.onClose=function(){var t=this;t.opened=!1,t.type&&t.$el&&(Ot.splice(Ot.indexOf(t),1),$("html").removeClass("with-modal-"+t.type.toLowerCase()),t.$el.trigger("modal:close "+t.type.toLowerCase()+":close"),t.emit("local::close modalClose "+t.type+"Close",t))},r.onClosed=function(){var t=this;t.type&&t.$el&&(t.$el.removeClass("modal-out"),t.$el.hide(),t.$el.trigger("modal:closed "+t.type.toLowerCase()+":closed"),t.emit("local::closed modalClosed "+t.type+"Closed",t))},r.open=function(t){var e,r=this,n=r.app,o=r.$el,a=r.type,i=r.$backdropEl,s=r.params.moveToRoot,c=!0;if(void 0!==t?c=t:void 0!==r.params.animate&&(c=r.params.animate),!o||o.hasClass("modal-in"))return r;if("dialog"===a&&n.params.modal.queueDialogs&&($(".dialog.modal-in").length>0?e=!0:Ot.length>0&&Ot.forEach((function(t){"dialog"===t.type&&(e=!0)})),e))return $t.push(r),r;var u=o.parent(),f=o.parents(document).length>0;function l(){o.hasClass("modal-out")?r.onClosed():o.hasClass("modal-in")&&r.onOpened()}return s&&n.params.modal.moveToRoot&&!u.is(n.root)&&(n.root.append(o),r.once(a+"Closed",(function(){f?u.append(o):o.remove()}))),o.show(),r._clientLeft=o[0].clientLeft,c?(i&&(i.removeClass("not-animated"),i.addClass("backdrop-in")),o.animationEnd((function(){l()})),o.transitionEnd((function(){l()})),o.removeClass("modal-out not-animated").addClass("modal-in"),r.onOpen()):(i&&i.addClass("backdrop-in not-animated"),o.removeClass("modal-out").addClass("modal-in not-animated"),r.onOpen(),r.onOpened()),r},r.close=function(t){var e=this,r=e.$el,n=e.$backdropEl,o=!0;if(void 0!==t?o=t:void 0!==e.params.animate&&(o=e.params.animate),!r||!r.hasClass("modal-in"))return $t.indexOf(e)>=0&&$t.splice($t.indexOf(e),1),e;if(n){var a=!0;"popup"===e.type&&e.$el.prevAll(".popup.modal-in").each((function(t,r){var n=r.f7Modal;n&&n.params.closeByBackdropClick&&n.params.backdrop&&n.backdropEl===e.backdropEl&&(a=!1)})),a&&(n[o?"removeClass":"addClass"]("not-animated"),n.removeClass("backdrop-in"))}function i(){r.hasClass("modal-out")?e.onClosed():r.hasClass("modal-in")&&e.onOpened()}return r[o?"removeClass":"addClass"]("not-animated"),o?(r.animationEnd((function(){i()})),r.transitionEnd((function(){i()})),r.removeClass("modal-in").addClass("modal-out"),e.onClose()):(r.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),e.onClose(),e.onClosed()),"dialog"===e.type&&0!==$t.length&&$t.shift().open(),e},r.destroy=function(){var t=this;t.destroyed||(t.emit("local::beforeDestroy modalBeforeDestroy "+t.type+"BeforeDestroy",t),t.$el&&(t.$el.trigger("modal:beforedestroy "+t.type.toLowerCase()+":beforedestroy"),t.$el.length&&t.$el[0].f7Modal&&delete t.$el[0].f7Modal),U.deleteProps(t),t.destroyed=!0)},e}(W),Pt=$.support,Tt=$.device;t.Ajax=e,t.App=lt,t.Constructors=J,t.Device=Tt,t.Event=W,t.Lazy=Ct,t.Modal=Lt,t.Modals=X,t.Module=G,t.Page=V,t.Resize=tt,t.SW=ot,t.Support=Pt,t.Utils=U,t.jsx=K,t.loadModule=Z},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@wiajs/core"]={});
|
|
11
|
+
var t,e;t=this,e=function(t){"use strict";var e=function(){function t(){}var e=t.prototype;return e.post=function(t,e){return new Promise((function(n,r){var o=$.getXhr();o.onreadystatechange=function(){4===o.readyState&&(200===o.status?n(o.responseText):r(new Error(o.statusText),o.responseText))},o.open("POST",t,!0);var i=e;"object"==typeof e&&(i=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n+"="+t[n]);return e.sort().join("&")}(e)),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(i)}))},e.postForm=function(t,e){return new Promise((function(n,r){var o=$.getXhr();o.onreadystatechange=function(){4===o.readyState&&(200===o.status?n(null,o.responseText):r(new Error(o.status),o.responseText))},o.open("POST",t,!0),o.send(e)}))},e.get=function(t,e){return $.get(t,e)},t}();function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u,f,h={exports:{}};
|
|
12
|
+
/*!
|
|
13
|
+
* wia dom v1.0.1
|
|
14
|
+
* (c) 2022-2023 Sibyl Yu and contributors
|
|
15
|
+
* Released under the MIT License.
|
|
16
|
+
*/h.exports=function(){if(f)return u;f=1;const t=[],e={},n=/^(?:body|html)$/i,r={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};function o(t,e,n){t&&1===t.nodeType&&(null==n?t.removeAttribute(e):t.setAttribute(e,n))}function i(t){if(void 0===t)return $();if("~"===t[0]&&(t=`[name=${t.substr(1)}]`),!this.is(t)){for(let e=0;e<this.length;e+=1){let n=this[e].parentNode;for(;n;){const e=$(n);if(e.is(t))return e;n=n.parentNode}}return $()}return this}function a(t){if($.isDom(t))return this.empty().append(t),this;const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let n=0;n<r.length;n+=1){if(!t){e.push(r[n]);break}if($(r[n]).is(t)){e.push(r[n]);break}}}return $(e,t)}const s=Object.freeze({__proto__:null,add:function(...t){const e=this;let n,r;for(n=0;n<t.length;n+=1){const o=$(t[n]);for(r=0;r<o.length;r+=1)e[e.length]=o[r],e.length+=1}return e},animationEnd:function(t){const e=["webkitAnimationEnd","animationend"],n=this;let r;function o(i){if(i.target===this)for(t.call(this,i),r=0;r<e.length;r+=1)n.off(e[r],o)}if(t)for(r=0;r<e.length;r+=1)n.on(e[r],o);return this},att:function(t,e){let n=[];try{if(this.attr(t)===e)return this;n=this.dom?.querySelector(`[${t}=${e}]`)}catch(t){}return $(n||[])},attr:function(t,e){let n;const r=this[0];return 1===arguments.length&&"string"==typeof t?1===r.nodeType&&r&&(n=r.getAttribute(t)):n=this.each((function(n){$.isObject(t)?Object.keys(t).forEach((e=>{this[e]=t[e],o(this,e,t[e])})):o(this,t,$.funcArg(this,e,n,this.getAttribute(t)))})),n},atts:function(t,e){let n=[];try{n=$(`[${t}=${e}]`,this.dom),this.attr(t)===e&&n.push(this.dom)}catch(t){}return $(n||[])},bindName:function(){const t=this.qus("[name]");return t?.forEach((t=>{const e=$(t),n=e.attr("name");this.n||(this.n={}),this.n[n]&&this.n[n].dom===t||(this.n[n]=e)})),this},child:a,childCount:function(){return this.dom?this.dom.children.length:0},childNode:function(t){return a.bind(this)(t)},children:function(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let n=0;n<r.length;n+=1)t?$(r[n]).is(t)&&e.push(r[n]):e.push(r[n])}return $($.uniq(e))},class:function(t){let e=[];if(!t)return $();try{const n=[];t.split(",").forEach((t=>{t&&(t.includes(".")?n.push(t.trim()):n.push(`.${t.trim()}`))})),e=this.dom?.querySelector(n.join(","))}catch(t){}return $(e||[])},classes:function(t){let e=[];if(!t)return $();try{const n=[];t.split(",").forEach((t=>{t.includes(".")?n.push(t.trim()):n.push(`.${t.trim()}`)}));const r=this.dom?.querySelectorAll(n.join(","));r&&r.length>0&&(e=Array.from(r))}catch(t){}return $(e||[])},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},closest:i,concat:function(...e){const n=[];for(let t=0;t<e.length;t++){const r=e[t];n[t]=$.isDom(r)?r.toArray():r}return t.concat.apply($.isDom(this)?this.toArray():this,n)},css:function(t,e){const n=/^width|height|left|top|marginLeft|marginTop|paddingLeft|paddingTop$/;let r;if(1===arguments.length){if("string"!=typeof t){for(r=0;r<this.length;r+=1)for(let e in t){let o=t[e];n.test(e)&&$.isNumber(o)&&(o=`${o}px`),this[r].style[e]=o}return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(r=0;r<this.length;r+=1){let o=e;n.test(t)&&$.isNumber(o)&&(o=`${o}px`),this[r].style[t]=o}return this}return this},cursorEnd:function(){if(!this.dom)return null;const t=this.dom;if(t.focus(),void 0!==window.getSelection&&void 0!==document.createRange){const e=document.createRange();e.selectNodeContents(t),e.collapse(!1);const n=window.getSelection();n.removeAllRanges(),n.addRange(e)}else if(void 0!==document.body.createTextRangrge){const e=document.body.createTextRange();e.moveToElementText(t),e.collapse(!1),e.select()}},data:function(t,e){let n,r;const o="data-"+t.replace(/([A-Z])/g,"-$1").toLowerCase();if(void 0===e)[r]=this,r&&(n=r.domElementDataStorage&&t in r.domElementDataStorage?r.domElementDataStorage[t]:this.attr(o)),n&&(n=$.deserializeValue(n));else{for(let n=0;n<this.length;n+=1)r=this[n],r.domElementDataStorage||(r.domElementDataStorage={}),r.domElementDataStorage[t]=e,this.attr(o,e);n=this}return n},dataset:function(){const t=this[0];if(!t)return;const e={};if(t.dataset)for(const n in t.dataset)e[n]=t.dataset[n];else for(let n=0;n<t.attributes.length;n+=1){const r=t.attributes[n];r.name.indexOf("data-")>=0&&(e[$.camelCase(r.name.split("data-")[1])]=r.value)}for(const t in e)e[t]=$.deserializeValue(e[t]);return e},detach:function(){return this.remove()},each:function(e){return t.some.call(this,(function(t,n){return!1===e.call(t,n,t)})),this},empty:function(){return this.each((function(){this.innerHTML=""}))},eq:function(t){if(void 0===t)return this;const{length:e}=this;return t>e-1||e+t<0?$():-1===t?this.slice(t):this.slice(t,+t+1)},every:function(e){return t.every.call(this,(function(t,n){return e.call(t,t,n)}))},fastLink:function(){return $.fastLink(this),this},filter:function(e){let n=[];try{$.isFunction(e)&&e.call?this.each((function(t,r){e.call(this,t,r)&&n.push(this)})):n=t.filter.call(this,(function(t){return $.matches(t,e)}))}catch(t){}return $(n)},find:function(e){let n=null;if(!e)return $();"~"===e[0]&&(e=`[name=${e.substr(1)}]`);const r=this;return n="object"==typeof e?$(e).filter((function(){const e=this;return t.some.call(r,(function(t){return $.contains(t,e)}))})):1===this.length?$($.qsa(e,this[0])):this.map((function(){return $.qsa(e,this)})),n||$()},findNode:function(t){let e=null;return t?("~"===t[0]&&(t=`[name=${t.substr(1)}]`),e=1===this.length?$($.qu(t,this[0])):this.map((function(){return $.qu(t,this)})),e||$()):$()},first:function(){const t=this[0];return t&&!$.isObject(t)?t:$(t)},firstChild:function(){return this.dom&&0!==this.dom.children.length?$([this.dom.children[0]]):null},forEach:function(e){return t.some.call(this,(function(t,n){return!1===e.call(t,t,n)})),this},get:function(e){return void 0===e?t.slice.call(this):this[e>=0?e:e+this.length]},getCursorPos:function(){let t=0;if(!this.dom)return 0;const e=this.dom;if(e.selectionStart)t=e.selectionStart;else{let n=null;"textarea"===e.tagName.toLowerCase()?(n=event.srcElement.createTextRange(),n.moveToPoint(event.x,event.y)):n=document.selection.createRange(),n.moveStart("character",-event.srcElement.value.length),t=n.text.length}return t},getCursorPosition:function(){if(!this.dom)return 0;const t=this.dom,e="@#%#^&#*$",n=document.selection.createRange();n.text=e;const r=t.value.indexOf(e);return n.moveStart("character",-9),n.text="",r},hasAttr:function(e){return t.some.call(this,(function(t){return t.hasAttribute(e)}))},hasChild:function(){return!!this.dom&&this.dom.children.length>0},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},hide:function(){return this.each((function(){"none"!==this.style.display&&(this.style.display="none")}))},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;$(this).empty().append($.funcArg(this,t,e,n))})):0 in this?this[0].innerHTML:void 0},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},indexOf:function(t){for(let e=0;e<this.length;e+=1)if(this[e]===t)return e;return-1},is:function(t){return this.length>0&&$.matches(this[0],t)},last:function(){const t=this[this.length-1];return t&&!$.isObject(t)?t:$(t)},lastChild:function(){return this.dom&&0!==this.dom.children.length?$([this.dom.children[this.dom.children.length-1]]):null},map:function(t){return $($.map(this,(function(e,n){return t.call(e,n,e)})))},moveFirst:function(){this.rowindex=0},name:function(t){return this.att("name",t)},names:function(t){return this.atts("name",t)},next:function(t){return this.length>0?t?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(t)?$([this[0].nextElementSibling]):$():this[0].nextElementSibling?$([this[0].nextElementSibling]):$():$()},nextAll:function(t){const e=[];let n=this[0];if(!n)return $();for(;n.nextElementSibling;){const r=n.nextElementSibling;t?$(r).is(t)&&e.push(r):e.push(r),n=r}return $(e)},nextNode:function(t){const e=[],n=this[0];if(!n)return $();let r=n.nextElementSibling;for(;r;){if(!t){e.push(r);break}if($(r).is(t)){e.push(r);break}r=r.nextElementSibling}return $(e)},not:function(e){const n=[];if($.isFunction(e)&&e.call)this.each((function(t){e.call(this,t)||n.push(this)}));else{var r="string"==typeof e?this.filter(e):likeArray(e)&&isFunction(e.item)?t.slice.call(e):$(e);this.forEach((function(t){r.indexOf(t)<0&&n.push(t)}))}return $(n)},off:function(...t){let[e,n,r,o]=t;"function"==typeof t[1]&&([e,r,o]=t,n=void 0),o||(o=!1);const i=e.split(" ");for(let t=0;t<i.length;t+=1){const e=i[t];for(let t=0;t<this.length;t+=1){const i=this[t],a=i?.domListeners[e];if(a?.length)for(let t=a.length-1;t>=0;t-=1){const s=a[t];s?.listener===r&&s?.capture===o?("click"!==e&&"swipe"!==e&&"press"!==e||!$.support.touch?i.removeEventListener(e,s.proxyListener,s.capture):(i.removeEventListener("touchstart",s.proxyListener[0],s.capture),"swipe"===e?i.removeEventListener("touchmove",s.proxyListener[1],s.capture):i.removeEventListener("touchend",s.proxyListener[1],s.capture)),a.splice(t,1)):r&&s?.listener?.onceProxy===r&&s?.capture===o||r&&n&&s?.listener?.liveProxy===r&&s?.listener?.selector===n&&s?.capture===o||r&&!n&&s?.listener?.liveProxy===r&&s?.capture===o?(i.removeEventListener(e,s.proxyListener,s.capture),a.splice(t,1)):r||(i.removeEventListener(e,s.proxyListener,s.capture),a.splice(t,1))}}}return this},offset:function(t){if(t)return this.each((function(e){var n=$(this),r=$.funcArg(this,t,e,n.offset()),o=n.offsetParent().offset(),i={top:r.top-o.top,left:r.left-o.left};"static"===n.css("position")&&(i.position="relative"),n.css(i)}));if(!this.length)return null;if(document.documentElement!==this[0]&&!$.contains(document.documentElement,this[0]))return{top:0,left:0};const e=this[0].getBoundingClientRect(),n=this.closest(".page-content"),r=n.length?n.dom.scrollLeft:window.pageXOffset,o=n.length?n.dom.scrollTop:window.pageYOffset;return{left:e.left+r,top:e.top+o,width:Math.round(e.width),height:Math.round(e.height)}},offsetParent:function(){return this.map((function(){let t=this.offsetParent||document.body;for(;t&&!n.test(t.nodeName)&&"static"==$(t).css("position");)t=t.offsetParent;return t}))},on:function(...t){let[e,n,r,o]=t;function i(t,e,...n){const r=t.target;if(!r)return;const{eventType:o,selector:a,liveProxy:c}=i,l=$(r).closest(a)?.dom;if(l&&("click"!==o||s(l,c))){const e=[t,l,...n];c.apply(r,e)}}if("function"==typeof t[1]&&([e,r,o]=t,n=void 0),n)return i.selector=n,i.liveProxy=r,i.eventType=e,this.on(e,i,o);function a(t,...e){const n=[t,this,...e,...t?.target?.wiaDomEventData??[]];r.apply(this,n)}function s(t,e){let n=!0;if(!t||!e)return!1;if(e.liveProxy||e.onceProxy||1!==t.nodeType)return!0;try{t.clickDisabled?.has?.(e)?(console.log("duplicate click disabled."),n=!1):(t.clickDisabled||(t.clickDisabled=new Set),t.clickDisabled.add(e),setTimeout((()=>t.clickDisabled.delete(e)),200))}catch(t){console.log("canClick exp:",t.message)}return n}function c(t){if(!s(this,r))return!1;const e=[t,this,...t?.target?.wiaDomEventData||[]];r.apply(this,e)}o||(o=!1);const l={};function u(t){l.x=t.targetTouches[0].pageX,l.y=t.targetTouches[0].pageY,l.el=$(t.target),l.top=l.el.rect()?.top??0,l.left=l.el.rect()?.left??0,l.time=(new Date).getTime(),l.trigger=!1,l.scrollY=!1;const e=l.el.closest(".page-content").dom;e&&(l.scrollY=!0,0!==e.scrollTop&&e.scrollTop+e.clientHeight!==e.scrollHeight||(l.scrollY=!1))}function f(t){if("swipe"!==e||l.trigger)return;const n=Math.round(t.targetTouches[0].pageX-l.x),r=Math.round(t.targetTouches[0].pageY-l.y),o=Math.round((l.el.rect()?.top??0)-l.top),i=Math.round((l.el.rect()?.left??0)-l.left),s=Math.abs(n-i),c=Math.abs(r-o);return c>15&&s<8&&0===o&&!l.scrollY?(l.trigger=!0,a.call(this,t,{x:0,y:r})):s>12&&c<8&&0===i&&0===o?(l.trigger=!0,a.call(this,t,{x:n,y:0})):void 0}function h(t){return p.call(this,t)}function d(t){return p.call(this,t)}function p(t){if("click"!==e&&"press"!==e)return;l.trigger=!1;const n=Math.abs(t.changedTouches[0].pageX-l.x),r=Math.abs(t.changedTouches[0].pageY-l.y),o=(new Date).getTime()-l.time;if(n<=5&&r<=5){if(o<500&&"click"===e)return c.call(this,t);if(o>500&&"press"===e)return a.call(this,t)}}const m=e.split(" ");let g;for(let t=0;t<this.length;t+=1){const e=this[t];for(g=0;g<m.length;g+=1){const t=m[g];if(e.domListeners||(e.domListeners={}),e.domListeners[t]||(e.domListeners[t]=[]),!$.support.touch||"click"!==t&&"swipe"!==t&&"press"!==t)"click"===t?(e.domListeners[t].push({capture:o,listener:r,proxyListener:c}),e.addEventListener(t,c,o)):(e.domListeners[t].push({capture:o,listener:r,proxyListener:a}),e.addEventListener(t,a,o));else{const n={capture:o,listener:r,proxyListener:[u]};let i=o;"swipe"===t?($.support.passiveListener&&(i={passive:!0,capture:o}),n.proxyListener.push(f)):"click"===t?n.proxyListener.push(h):"press"===t&&n.proxyListener.push(d),e.domListeners[t].push(n),n.proxyListener.forEach((t=>{let n="";switch(t){case u:n="touchstart";break;case f:n="touchmove";break;case h:case d:n="touchend"}e.addEventListener(n,t,i)}))}}}return this},once:function(...t){const e=this;let[n,r,o,i]=t;function a(...t){e.off(n,r,a,i),a.onceProxy&&(a.onceProxy.apply(this,t),delete a.onceProxy)}return"function"==typeof t[1]&&([n,o,i]=t,r=void 0),a.onceProxy=o,e.on(n,r,a,i)},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},parent:function(t){const e=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?$(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return $($.uniq(e))},parentNode:function(t){const e=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;){if(!t)return e.push(r),$(e,t);if($(r).is(t))return e.push(r),$(e,t);r=r.parentNode}}return $(e,t)},parents:function(t){const e=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)t?$(r).is(t)&&e.push(r):e.push(r),r=r.parentNode}return $($.uniq(e))},pluck:function(t){return $.map(this,(function(e){return e[t]}))},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),r=this.offset(),o=n.test(e[0].nodeName)?{top:0,left:0}:e.offset();return r.top-=parseFloat($(t).css("margin-top"))||0,r.left-=parseFloat($(t).css("margin-left"))||0,o.top+=parseFloat($(e[0]).css("border-top-width"))||0,o.left+=parseFloat($(e[0]).css("border-left-width"))||0,{top:r.top-o.top,left:r.left-o.left}}},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&$(e.previousElementSibling).is(t)?$([e.previousElementSibling]):$():e.previousElementSibling?$([e.previousElementSibling]):$()}return $()},prevAll:function(t){const e=[];let n=this[0];if(!n)return $();for(;n.previousElementSibling;){const r=n.previousElementSibling;t?$(r).is(t)&&e.push(r):e.push(r),n=r}return $(e)},prevNode:function(t){const e=[],n=this[0];if(!n)return $();let r=n.previousElementSibling;for(;r;){if(!t){e.push(r);break}if($(r).is(t)){e.push(r);break}r=r.previousElementSibling}return $(e)},prop:function(t,e){try{if(t=r[t]||t,1!==arguments.length||"string"!=typeof t)return this.each((function(n){if(2===arguments.length)this[t]=$.funcArg(this,e,n,this[t]);else if($.isObject(t))for(const e in t)this[e]=t[e]}));this[0]&&this[0][t]}catch(t){console.log("prop exp:",t.message)}},qu:function(t){let e=[];try{e=this.dom?.querySelector(t)}catch(t){}return $(e||[])},qus:function(t){return $(t,this.dom)},ready:function(t){return/complete|loaded|interactive/.test(document.readyState)&&document.body?t($):document.addEventListener("DOMContentLoaded",(function(){t($)}),!1),this},rect:function(){if(!this.length)return null;if(document.documentElement!==this[0]&&!$.contains(document.documentElement,this[0]))return{top:0,left:0};const t=this[0].getBoundingClientRect();return{left:t.left,top:t.top,width:Math.round(t.width),height:Math.round(t.height)}},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){o(this,t)}),this)}))},removeData:function(t){const e="data-"+t.replace(/([A-Z])/g,"-$1").toLowerCase();for(let n=0;n<this.length;n+=1){const r=this[n];r.domElementDataStorage&&r.domElementDataStorage[t]&&(r.domElementDataStorage[t]=null,delete r.domElementDataStorage[t]),r.removeAttribute(e)}return this},removeProp:function(t){return t=r[t]||t,this.each((function(){delete this[t]}))},replaceWith:function(t){return this.before(t).remove()},setCursorPos:function(t){if(!this.dom)return;const e=this.dom.createTextRange();e.collapse(!0),e.moveStart("character",t),e.select()},show:function(){return this.each((function(){"none"===this.style.display&&(this.style.display=""),"none"===getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=function(t){if(!e[t]){const n=document.createElement(t);document.body.appendChild(n);let r=getComputedStyle(n,"").getPropertyValue("display");n.parentNode.removeChild(n),"none"===r&&(r="block"),e[t]=r}return e[t]}(this.nodeName))}))},siblings:function(t){return this.nextAll(t).add(this.prevAll(t))},size:function(){return this.length},slice:function(...e){return $(t.slice.apply(this,e))},some:function(e){return t.some.call(this,(function(t,n){return e.call(t,t,n)}))},styles:function(){return this[0]?window.getComputedStyle(this[0],null):{}},tag:function(t){let e=this.dom?.getElementsByTagName(t);return e&&(e=e[0]),$(e)},tags:function(t){let e=this.dom?.getElementsByTagName(t);return e=e&&e.length>0?[].slice.call(e):[],$(e)},text:function(t){return 0 in arguments?this.each((function(e){var n=$.funcArg(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):void 0},toArray:function(){return this.get()},transform:function(t){for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransform=t,n.transform=t}return this},transition:function(t){"string"!=typeof t&&(t=`${t}ms`);for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],n=this;let r;function o(i){if(i.target===this)for(t.call(this,i),r=0;r<e.length;r+=1)n.off(e[r],o)}if(t)for(r=0;r<e.length;r+=1)n.on(e[r],o);return this},trigger:function(...t){const e=t[0].split(" "),n=t[1];for(let r=0;r<e.length;r+=1){const o=e[r];for(let e=0;e<this.length;e+=1){const r=this[e];let i;try{i=new window.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(t){i=document.createEvent("Event"),i.initEvent(o,!0,!0),i.detail=n}r.wiaDomEventData=t.filter(((t,e)=>e>0)),r.dispatchEvent(i),r.wiaDomEventData=[],delete r.wiaDomEventData}}return this},upper:function(t){return i.bind(this)(t)},val:function(t,e){let n;if(0 in arguments&&!$.isDom(t))return null==t&&(t=""),this.each((function(n){let r=$.funcArg(this,t,n,this.value);const o=this;if(o.multiple&&"select"===o.nodeName.toLowerCase())r=Array.isArray(r)?r.map((t=>t.toString())):[r.toString()],o.options.forEach((t=>t.selected=r.includes(t.value)));else if("checkbox"===o.type&&e){r=Array.isArray(r)?r.map((t=>t.toString())):[r.toString()];const t=$(o).attr("name");$(`input[name=${t}]`,e).forEach((t=>t.checked=r.includes(t.value)))}else if("radio"===o.type&&e){Array.isArray(r)&&(r=r[0]);const t=$(o).attr("name");$(`input[name=${t}]`,e).forEach((t=>{t.checked=t.value===r.toString()}))}else o.value=r.toString()}));if(this[0]){const e=this[0];if(n=e.value,e.multiple&&"select"===e.nodeName.toLowerCase())n=$(e).find("option").filter((function(){return this.selected})).pluck("value");else if("checkbox"===e.type&&$.isDom(t)){const e=t,r=this.attr("name");n=$(`input[name=${r}]:checked`,e).pluck("value")}else if("radio"===e.type&&$.isDom(t)){const e=t,r=this.attr("name"),o=$(`input[name=${r}]:checked`,e);o&&o.length&&(n=o[0].value)}}return n},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null}}),c=Object.freeze({__proto__:null,scrollHeight:function(){return this[0].scrollHeight},scrollLeft:function(...t){if(!this.length)return;let[e,n,r,o]=t;3===t.length&&"function"==typeof r&&([e,n,o,r]=t);const i="scrollLeft"in this[0];return void 0===e?i?this[0].scrollLeft:this[0].pageXOffset:this.scrollTo(e,void 0,n,r,o)},scrollTo:function(...t){let[e,n,r,o,i]=t;return 4===t.length&&"function"==typeof o&&(i=o,[e,n,r,i,o]=t),void 0===o&&(o="swing"),this.each((function(){const t=this;let a,s,c,l,u,f,h,d;void 0===o&&(o="swing");const p="scrollTop"in t,m="scrollLeft"in t;let g=n>0||0===n,v=e>0||0===e;if(g&&(a=t.scrollTop,r||(p?t.scrollTop=n:t.scrollTo(t.scrollX,n))),v&&(s=t.scrollLeft,r||(m?t.scrollLeft=e:t.scrollTo(e,t.scrollY))),!r)return;g&&(c=t.scrollHeight-t.offsetHeight,u=Math.max(Math.min(n,c),0)),v&&(l=t.scrollWidth-t.offsetWidth,f=Math.max(Math.min(e,l),0));let y=null;g&&u===a&&(g=!1),v&&f===s&&(v=!1),$.requestAnimationFrame((function e(n=(new Date).getTime()){null===y&&(y=n);const c=Math.max(Math.min((n-y)/r,1),0),l="linear"===o?c:.5-Math.cos(c*Math.PI)/2;let p;g&&(h=a+l*(u-a)),v&&(d=s+l*(f-s)),g&&u>a&&h>=u&&(t.scrollTop=u,p=!0),g&&u<a&&h<=u&&(t.scrollTop=u,p=!0),v&&f>s&&d>=f&&(t.scrollLeft=f,p=!0),v&&f<s&&d<=f&&(t.scrollLeft=f,p=!0),p?i&&i():(g&&(t.scrollTop=h),v&&(t.scrollLeft=d),$.requestAnimationFrame(e))}))}))},scrollTop:function(...t){if(!this.length)return;let[e,n,r,o]=t;3===t.length&&"function"==typeof r&&([e,n,o,r]=t);const i="scrollTop"in this[0];return void 0===e?i?this[0].scrollTop:this[0].pageYOffset:this.scrollTo(void 0,e,n,r,o)},scrollWidth:function(){return this[0].scrollWidth}}),l=Object.freeze({__proto__:null,animate:function(t,e){const n=this,r={props:Object.assign({},t),params:Object.assign({duration:300,easing:"swing"},e),elements:n,animating:!1,que:[],easingProgress:(t,e)=>"swing"===t?.5-Math.cos(e*Math.PI)/2:"function"==typeof t?t(e):e,stop(){r.frameId&&$.cancelAnimationFrame(r.frameId),r.animating=!1,r.elements.each(((t,e)=>{delete e.dom7AnimateInstance})),r.que=[]},done(t){if(r.animating=!1,r.elements.each(((t,e)=>{delete e.domAnimateInstance})),t&&t(n),r.que.length>0){const t=r.que.shift();r.animate(t[0],t[1])}},animate(t,e){if(r.animating)return r.que.push([t,e]),r;const o=[];r.elements.each(((e,n)=>{let i,a,s,c,l;n.dom7AnimateInstance||(r.elements[e].domAnimateInstance=r),o[e]={container:n},Object.keys(t).forEach((r=>{i=window.getComputedStyle(n,null).getPropertyValue(r).replace(",","."),a=parseFloat(i),s=i.replace(a,""),c=parseFloat(t[r]),l=t[r]+s,o[e][r]={initialFullValue:i,initialValue:a,unit:s,finalValue:c,finalFullValue:l,currentValue:a}}))}));let i,a,s=null,c=0,l=0,u=!1;return r.animating=!0,r.frameId=$.requestAnimationFrame((function f(){let h,d;i=(new Date).getTime(),u||(u=!0,e.begin&&e.begin(n)),null===s&&(s=i),e.progress&&e.progress(n,Math.max(Math.min((i-s)/e.duration,1),0),s+e.duration-i<0?0:s+e.duration-i,s),o.forEach((n=>{const u=n;a||u.done||Object.keys(t).forEach((n=>{if(a||u.done)return;h=Math.max(Math.min((i-s)/e.duration,1),0),d=r.easingProgress(e.easing,h);const{initialValue:f,finalValue:p,unit:m}=u[n];u[n].currentValue=f+d*(p-f);const g=u[n].currentValue;(p>f&&g>=p||p<f&&g<=p)&&(u.container.style[n]=p+m,l+=1,l===Object.keys(t).length&&(u.done=!0,c+=1),c===o.length&&(a=!0)),a?r.done(e.complete):u.container.style[n]=g+m}))})),a||(r.frameId=$.requestAnimationFrame(f))})),r}};if(0===r.elements.length)return n;let o;for(let t=0;t<r.elements.length;t+=1)r.elements[t].domAnimateInstance?o=r.elements[t].domAnimateInstance:r.elements[t].domAnimateInstance=r;return o||(o=r),"stop"===t?o.stop():o.animate(r.props,r.params),n},getTranslate:function(t="x"){const e=this;if(!e||!e.dom)return 0;const n=e.dom;let r,o,i;const a=window.getComputedStyle(n,null);return window.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map((t=>t.replace(",","."))).join(", ")),i=new window.WebKitCSSMatrix("none"===o?"":o)):(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),"x"===t&&(o=window.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(o=window.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),o||0},stop:function(){const t=this;for(let e=0;e<t.length;e+=1)t[e].domAnimateInstance&&t[e].domAnimateInstance.stop()}});function h(t,e,n=!1){try{const r=this;if(n||d.bind(r)(),e||(e=r.attr("name")),e){const o=r.name(`${e}-tp`);o.length&&(o.hide(),$.isArray(t)?t.forEach((t=>{v.bind(r)(e,t,n)})):v.bind(r)(e,t,n))}}catch(t){console.error("setForms exp.",{msg:t.message})}}function d(){try{const t=this;t.find("input,textarea").forEach((t=>{t.data&&(t.data=null,delete t.data),"checkbox"!==t.type&&(t.value="")})),t.find("[name$=-data]").remove(),t.find("[name$=-empty]").show()}catch(t){console.error(`clearForm exp:${t.message}`)}}function p(t,...e){let n=!1;try{if(null==t)return!1;const r=this;let o=!1,i=-1,a=!1,s=r.attr("name");if(e.length)if($.isObject(e[0])){const t={add:o,name:s,idx:i,form:a,...e[0]};({add:o,name:s,idx:i,form:a}=t)}else $.isArray(t)&&$.isNumber(e[0])?(e.length>=1&&(i=e[0]),e.length>=2&&$.isString(e[1])&&(s=e[1]),e.length>=3&&$.isBool(e[2])&&(o=e[2])):e.length>=1&&$.isString(e[0])?s=e[0]:e.length>=1&&$.isBool(e[0])?o=e[0]:e.length>=2&&$.isBool(e[1])&&(o=e[1]);o||(a&&d.bind(r)(),m.bind(r)(s)),a&&$.isObject(t)?Object.keys(t).forEach((e=>w.bind(r)(e,t[e]))):s&&(n=w.bind(r)(s,t,i))}catch(t){console.error("setView exp.",{msg:t.message})}return n}function m(t){try{const e=this;t||(t=e.attr("name")),e.names(t).forEach((t=>{"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase()||(t.data&&(t.data=null,delete t.data),"checkbox"!==t.type&&(t.value=""))})),e.names(`${t}-data`).remove(),e.name(`${t}-empty`).show()}catch(t){console.error(`clearView exp:${t.message}`)}}function g(t){console.log("removeChip",{e:t});const e=$(t.target).closest(".chip");if(e&&e.length>0){let t=e.data("id");const n=e.prevNode("input[type=hidden]");e.remove(),n&&n.length>0&&(t=n.val().replace(new RegExp(`${t}\\s*,?\\s*`),"").replace(/\s*,\s*$/,""),n.val(t))}}function v(t,e,n=!1){try{const r=this.name(`${t}-tp`);if(r.length){r.hide();const t=r.clone();t.insertBefore(r),p.bind(t)(e,{form:!0,add:n}),t.attr("name",r.attr("name").replace("-tp","-data")).show()}}catch(t){console.error("setForm exp.",{msg:t.message})}}function y(t,e){return Function(`"use strict";return (function(r){return \`${t}\`})`)()(e)}function b(t,e,n,r,o=-1){try{if(!t)return;const i=$.isObject(n),a=$.isArray(n);let s,c;if(i?(s=n.id,c=n._id):a?o>-1&&(s=n[o]):c=n,(void 0!==s||void 0!==c)&&r?.length){const t=r.filter(((t,e)=>{const n=$(e);return s&&n.data("id")==s||c&&n.data("_id")==c}));t.length&&t.remove()}const l=$(y(t.dom.outerHTML,n).replaceAll("undefined:","").replaceAll("undefined\uff1a","").replaceAll("undefined",""));void 0!==s?l.data("id",s):void 0!==c&&l.data("_id",c),l.attr("name",`${e}-data`).insertBefore(t).show()}catch(t){console.error("addData exp.",{msg:t.message})}}function w(t,e,n=-1){try{if(!t)return!1;const r=this,o=r.name(t);if(o.length>0){const n=o.dom;"null"!==(e=e??"")&&"undefined"!==e||(e=""),"textarea"===n.tagName.toLowerCase()?o.val(e):"input"===n.tagName.toLowerCase()&&("text"===n.type?C.bind(r)(t,e):["date","time","month","week","datetime","datetime-local","email","number","search","url"].includes(n.type)?o.val(e):"hidden"===n.type?(C.bind(r)(t,e),o.change()):"select-one"!==n.type&&"select-multiple"!==n.type&&"checkbox"!==n.type&&"radio"!==n.type||o.val(e,r))}if($.isEmpty(e))return!1;const i=r.name(`${t}-tp`);if(i.length){i.hide();let o=!1;const a=i.attr("tp");("kv"===a||/kv-\d+/.test(a))&&(o=!0);let s=0===r.names(`${t}-data`).length;const c=r.name(t).dom;if(c&&"hidden"===c.type){const t=c.value;$.isEmpty(c.data)?t&&(e=t,t.indexOf(",")>-1&&(e=t.split(","))):e=c.data}const l=r.names(`${t}-data`);if($.isArray(e))e.forEach(((e,o)=>{e&&(s=!1,b.bind(r)(i,t,e,l,n))}));else if($.isObject(e)&&o){const o=Object.keys(e);if(o.length){s=!1;const c=/kv-(\d+)/.exec(a);if(c){const a=c[1];let s=0;const u=[],f=[];let h=0;if(o.forEach((o=>{if(s++,u.push(o),f.push(e[o]??""),h=s%a,0===h){const e={};u.forEach(((t,n)=>{e[`k${n+1}`]=u[n],e[`v${n+1}`]=f[n]})),console.log("setData",{md:e}),b.bind(r)(i,t,e,l,n),u.length=0,f.length=0}})),h>0){const e={};u.forEach(((t,n)=>{e[`k${n+1}`]=u[n],e[`v${n+1}`]=f[n]})),console.log("setData",{md:e}),b.bind(r)(i,t,e,l,n),u.length=0,f.length=0}}else o.forEach((o=>{e[o]&&b.bind(r)(i,t,{k:o,v:e[o]},l,n)}))}}else e&&(s=!1,b.bind(r)(i,t,e,l,n));i.hasClass("chip")&&i.parentNode().click(g);const u=i.find("img[src-tp]");r.find("img[src-tp]").forEach((t=>{if(0===u.length||-1===u.indexOf(t)){const e=$(t);e.attr("src",e.attr("src-tp")),e.removeAttr("src-tp")}})),s?r.name(`${t}-empty`).show():r.name(`${t}-empty`).hide()}else{const n=e,i=r.name(`${t}-val`);if(i.length){const t=i.html();n&&t.indexOf("${")>-1?(i.html(y(t,n).replaceAll("undefined:","").replaceAll("undefined\uff1a","").replaceAll("undefined","")),i.find("img[src-tp]").forEach((t=>{const e=$(t);e.attr("src",e.attr("src-tp"))}))):n&&i.html(n)}else if(o.length&&"text"!==o.dom.type){const t=o.html();n&&t&&t.indexOf("${")>-1&&(o.html(y(t,n).replaceAll("undefined:","").replaceAll("undefined\uff1a","").replaceAll("undefined","")),o.find("img[src-tp]").forEach((t=>{const e=$(t);e.attr("src",e.attr("src-tp"))})))}}}catch(t){console.error("setData exp.",{msg:t.message})}}function k(t,e,n){let r=e;try{if($.isObject(e)){if($.isObject(n))r=n.id&&n.id==e.id||n._id&&n._id==e._id?e:[n,e];else if($.isArray(n)){const t=n.filter((t=>!t.id&&!t._id||t.id&&t.id!=e.id||t._id&&t._id!=e._id));t.length&&(t.push(e),r=t)}}else{let t=`${n},${e}`;t.indexOf(",")>-1&&(t=Array.from(new Set(t.split(","))).join(",")),r=t}}catch(t){console.error("getValue exp.",{msg:t.message})}return r}function C(t,e){try{const n=this.name(t);if(!n.length)return;if($.isEmpty(e))return;$.isObject(e)&&void 0===e.id&&void 0===e._id?e._id=$.num():$.isArray(e)&&e.forEach((t=>{$.isObject(t)&&void 0===t.id&&void 0===t._id&&(t._id=$.num())}));let r=n.dom.data;if(!r&&(r=n.val(),"hidden"===n.dom.type&&/\s*[{[]/g.test(r)))try{r=JSON.parse(r),n.dom.data=r,n.val("")}catch(t){console.error("setInput exp.",{msg:t.message})}$.isEmpty(r)?$.isVal(e)?n.val(e):$.isArray(e)&&$.isVal(e[0])?n.val(e.join(",")):n.dom.data=e:($.isArray(e)?(e=e.reduce(((t,e)=>k(0,e,t)),r),$.hasVal(e)&&$.isArray(e)&&(e=Array.from(new Set(e)))):e=k(0,e,r),$.hasVal(e)&&($.isVal(e)?n.val(e):$.isArray(e)&&$.isVal(e[0])?n.val(e.join(",")):n.dom.data=e))}catch(t){console.error("setInput exp.",{msg:t.message})}}const M=Object.freeze({__proto__:null,addForms:function(t,e){e||(e=this.attr("name")),h.bind(this)(t,e,!0)},addView:function(t,...e){p.bind(this)(t,...e,!0)},clearForm:d,clearView:m,getForm:function(t){let e=null;try{const n=this;n.find("input[type=hidden]").forEach((t=>{$.isEmpty(t.data)||(t.value=JSON.stringify(t.data))})),t||(t=n.attr("name"));const r=n.name(`${t}-tp`);let o=null,i=r.length;i&&(i=!0,o=r.prev(),r.remove());const a=new FormData(n.dom);i&&r.insertAfter(o);const s=[];let c=null,l={};for(const t of a.entries()){const e=t[0];c?c===e&&($.isEmpty(l)||s.push({...l}),l={}):c=e;let n=t[1];try{/^\s*[{[]/.test(n)&&(n=JSON.parse(n))}catch(t){console.error("getForm exp.",{msg:t.message})}l[e]=n}$.hasVal(l)&&s.push(l),1===s.length?[e]=s:s.length>1&&(e=s)}catch(t){console.error("getForm exp.",{msg:t.message})}return e},getView:function(t){let e=null;try{const n=this;t||(t=n.attr("name"));const r=n.name(t);r.length&&(e=$.hasVal(r.data)?r.data:r.val())}catch(t){console.error("getView exp.",{msg:t.message})}return e},setForm:function(t,e){const n=e||{};n.form=!0,p.bind(this)(t,n)},setForms:h,setView:p}),E=window.$??{};[s,c,l,M].forEach((t=>{Object.keys(t).forEach((e=>{E.fn[e]=t[e]}))}));const x="resize scroll".split(" ");function S(t,e){e(t);for(var n=0,r=t.childNodes.length;n<r;n++)S(t.childNodes[n],e)}return"load,unload,dblclick,select,error,click,blur,focus,focusin,focusout,keyup,keydown,keypress,submit,change,mousedown,mousemove,mouseup,mouseenter,mouseleave,mouseout,mouseover,touchstart,touchend,touchmove,resize,scroll,swipe,press".split(",").forEach((function(t){E.fn[t]=function(...e){if(void 0===e[0]){for(let e=0;e<this.length;e+=1)try{x.indexOf(t)<0&&(t in this[e]?this[e][t]():E(this[e]).trigger(t))}catch(t){}return this}return this.on(t,...e)}})),["after","prepend","before","append"].forEach((function(t,e){var n=e%2;E.fn[t]=function(){let t;const r=E.map(arguments,(function(e){var n=[];return t=E.type(e),"array"==t?(e.forEach((function(t){return void 0!==t.nodeType?n.push(t):E.isDom(t)?n=n.concat(t.get()):void(n=n.concat(E.fragment(t)))})),n):"object"==t||null==e?e:E.fragment(e)}));if(r.length<1)return this;let o,i=this.length>1;return this.each((function(t,a){o=n?a:a.parentNode,a=0==e?a.nextSibling:1==e?a.firstChild:2==e?a:null;var s=E.contains(document.documentElement,o);r.forEach((function(t){if(i)t=t.cloneNode(!0);else if(!o)return E(t).remove();o.insertBefore(t,a);const e=E.qus('a[href=""]',o);e&&e.length>0&&e.forEach((t=>t.setAttribute("href","javascript:;"))),s&&S(t,(function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}}))}))}))};const r=n?t+"To":"insert"+(e?"Before":"After");E.fn[r]=function(e){return E(e)[t](this),this}})),E.default=E,u=E}();var d=l(h.exports);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(t){return t<0?-1:0===t?0:1}function y(t,e,n){return(1-n)*t+n*e}function b(t){return(t%=360)<0&&(t+=360),t}function w(t,e){return[t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2]]}var k=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],C=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],M=[95.047,100,108.883];function E(t,e,n){return(255<<24|(255&t)<<16|(255&e)<<8|255&n)>>>0}function x(t){return E(j(t[0]),j(t[1]),j(t[2]))}function S(t){return t>>16&255}function A(t){return t>>8&255}function L(t){return 255&t}function T(t){return 116*(e=function(t){return w([P(S(t)),P(A(t)),P(L(t))],k)}(t)[1]/100,e>216/24389?Math.pow(e,1/3):(903.2962962962963*e+16)/116)-16;var e}function O(t){return 100*((n=(e=(t+16)/116)*e*e)>216/24389?n:(116*e-16)/903.2962962962963);var e,n}function P(t){var e=t/255;return e<=.040449936?e/12.92*100:100*Math.pow((e+.055)/1.055,2.4)}function j(t){var e,n,r,o,i=t/100;return e=i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055,n=0,r=255,(o=Math.round(255*e))<n?n:o>r?r:o}var I=function(){function t(t,e,n,r,o,i,a,s,c,l){this.n=t,this.aw=e,this.nbb=n,this.ncb=r,this.c=o,this.nc=i,this.rgbD=a,this.fl=s,this.fLRoot=c,this.z=l}return t.make=function(e,n,r,o,i){void 0===e&&(e=M),void 0===n&&(n=200/Math.PI*O(50)/100),void 0===r&&(r=50),void 0===o&&(o=2),void 0===i&&(i=!1);var a=e,s=.401288*a[0]+.650173*a[1]+-.051461*a[2],c=-.250268*a[0]+1.204414*a[1]+.045854*a[2],l=-.002079*a[0]+.048952*a[1]+.953127*a[2],u=.8+o/10,f=u>=.9?y(.59,.69,10*(u-.9)):y(.525,.59,10*(u-.8)),h=i?1:u*(1-1/3.6*Math.exp((-n-42)/92)),d=u,p=[(h=h>1?1:h<0?0:h)*(100/s)+1-h,h*(100/c)+1-h,h*(100/l)+1-h],m=1/(5*n+1),g=m*m*m*m,v=1-g,b=g*n+.1*v*v*Math.cbrt(5*n),w=O(r)/e[1],$=1.48+Math.sqrt(w),k=.725/Math.pow(w,.2),C=k,E=[Math.pow(b*p[0]*s/100,.42),Math.pow(b*p[1]*c/100,.42),Math.pow(b*p[2]*l/100,.42)],x=[400*E[0]/(E[0]+27.13),400*E[1]/(E[1]+27.13),400*E[2]/(E[2]+27.13)];return new t(w,(2*x[0]+x[1]+.05*x[2])*k,k,C,f,d,p,b,Math.pow(b,.25),$)},t}();I.DEFAULT=I.make();var D=function(){function t(t,e,n,r,o,i,a,s,c){this.hue=t,this.chroma=e,this.j=n,this.q=r,this.m=o,this.s=i,this.jstar=a,this.astar=s,this.bstar=c}var e=t.prototype;return e.distance=function(t){var e=this.jstar-t.jstar,n=this.astar-t.astar,r=this.bstar-t.bstar,o=Math.sqrt(e*e+n*n+r*r);return 1.41*Math.pow(o,.63)},t.fromInt=function(e){return t.fromIntInViewingConditions(e,I.DEFAULT)},t.fromIntInViewingConditions=function(e,n){var r=(65280&e)>>8,o=255&e,i=P((16711680&e)>>16),a=P(r),s=P(o),c=.41233895*i+.35762064*a+.18051042*s,l=.2126*i+.7152*a+.0722*s,u=.01932141*i+.11916382*a+.95034478*s,f=.401288*c+.650173*l-.051461*u,h=-.250268*c+1.204414*l+.045854*u,d=-.002079*c+.048952*l+.953127*u,p=n.rgbD[0]*f,m=n.rgbD[1]*h,g=n.rgbD[2]*d,y=Math.pow(n.fl*Math.abs(p)/100,.42),b=Math.pow(n.fl*Math.abs(m)/100,.42),w=Math.pow(n.fl*Math.abs(g)/100,.42),$=400*v(p)*y/(y+27.13),k=400*v(m)*b/(b+27.13),C=400*v(g)*w/(w+27.13),M=(11*$+-12*k+C)/11,E=($+k-2*C)/9,x=(20*$+20*k+21*C)/20,S=(40*$+20*k+C)/20,A=180*Math.atan2(E,M)/Math.PI,L=A<0?A+360:A>=360?A-360:A,T=L*Math.PI/180,O=S*n.nbb,j=100*Math.pow(O/n.aw,n.c*n.z),I=4/n.c*Math.sqrt(j/100)*(n.aw+4)*n.fLRoot,D=L<20.14?L+360:L,R=5e4/13*(.25*(Math.cos(D*Math.PI/180+2)+3.8))*n.nc*n.ncb*Math.sqrt(M*M+E*E)/(x+.305),N=Math.pow(R,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),F=N*Math.sqrt(j/100),q=F*n.fLRoot,H=50*Math.sqrt(N*n.c/(n.aw+4)),_=(1+100*.007)*j/(1+.007*j),V=1/.0228*Math.log(1+.0228*q);return new t(L,F,j,I,q,H,_,V*Math.cos(T),V*Math.sin(T))},t.fromJch=function(e,n,r){return t.fromJchInViewingConditions(e,n,r,I.DEFAULT)},t.fromJchInViewingConditions=function(e,n,r,o){var i=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,a=n*o.fLRoot,s=n/Math.sqrt(e/100),c=50*Math.sqrt(s*o.c/(o.aw+4)),l=r*Math.PI/180,u=(1+100*.007)*e/(1+.007*e),f=1/.0228*Math.log(1+.0228*a);return new t(r,n,e,i,a,c,u,f*Math.cos(l),f*Math.sin(l))},t.fromUcs=function(e,n,r){return t.fromUcsInViewingConditions(e,n,r,I.DEFAULT)},t.fromUcsInViewingConditions=function(e,n,r,o){var i=n,a=r,s=Math.sqrt(i*i+a*a),c=(Math.exp(.0228*s)-1)/.0228/o.fLRoot,l=Math.atan2(a,i)*(180/Math.PI);l<0&&(l+=360);var u=e/(1-.007*(e-100));return t.fromJchInViewingConditions(u,c,l,o)},e.toInt=function(){return this.viewed(I.DEFAULT)},e.viewed=function(t){var e,n,r,o,i,a,s,c=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(c/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),u=this.hue*Math.PI/180,f=.25*(Math.cos(u+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),d=f*(5e4/13)*t.nc*t.ncb,p=h/t.nbb,m=Math.sin(u),g=Math.cos(u),y=23*(p+.305)*l/(23*d+11*l*g+108*l*m),b=y*g,w=y*m,$=(460*p+451*b+288*w)/1403,k=(460*p-891*b-261*w)/1403,M=(460*p-220*b-6300*w)/1403,x=Math.max(0,27.13*Math.abs($)/(400-Math.abs($))),S=v($)*(100/t.fl)*Math.pow(x,1/.42),A=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),L=v(k)*(100/t.fl)*Math.pow(A,1/.42),T=Math.max(0,27.13*Math.abs(M)/(400-Math.abs(M))),O=v(M)*(100/t.fl)*Math.pow(T,1/.42),P=S/t.rgbD[0],I=L/t.rgbD[1],D=O/t.rgbD[2];return e=1.86206786*P-1.01125463*I+.14918677*D,n=.38752654*P+.62144744*I-.00897398*D,r=-.0158415*P-.03412294*I+1.04996444*D,i=(o=C)[0][0]*e+o[0][1]*n+o[0][2]*r,a=o[1][0]*e+o[1][1]*n+o[1][2]*r,s=o[2][0]*e+o[2][1]*n+o[2][2]*r,E(j(i),j(a),j(s))},t}(),R=function(){function t(){}return t.sanitizeRadians=function(t){return(t+8*Math.PI)%(2*Math.PI)},t.trueDelinearized=function(t){var e=t/100;return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)},t.chromaticAdaptation=function(t){var e=Math.pow(Math.abs(t),.42);return 400*v(t)*e/(e+27.13)},t.hueOf=function(e){var n=w(e,t.SCALED_DISCOUNT_FROM_LINRGB),r=t.chromaticAdaptation(n[0]),o=t.chromaticAdaptation(n[1]),i=t.chromaticAdaptation(n[2]),a=(11*r+-12*o+i)/11,s=(r+o-2*i)/9;return Math.atan2(s,a)},t.areInCyclicOrder=function(e,n,r){return t.sanitizeRadians(n-e)<t.sanitizeRadians(r-e)},t.intercept=function(t,e,n){return(e-t)/(n-t)},t.lerpPoint=function(t,e,n){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e,t[2]+(n[2]-t[2])*e]},t.setCoordinate=function(e,n,r,o){var i=t.intercept(e[o],n,r[o]);return t.lerpPoint(e,i,r)},t.isBounded=function(t){return 0<=t&&t<=100},t.nthVertex=function(e,n){var r=t.Y_FROM_LINRGB[0],o=t.Y_FROM_LINRGB[1],i=t.Y_FROM_LINRGB[2],a=n%4<=1?0:100,s=n%2==0?0:100;if(n<4){var c=a,l=s,u=(e-c*o-l*i)/r;return t.isBounded(u)?[u,c,l]:[-1,-1,-1]}if(n<8){var f=a,h=s,d=(e-h*r-f*i)/o;return t.isBounded(d)?[h,d,f]:[-1,-1,-1]}var p=a,m=s,g=(e-p*r-m*o)/i;return t.isBounded(g)?[p,m,g]:[-1,-1,-1]},t.bisectToSegment=function(e,n){for(var r=[-1,-1,-1],o=r,i=0,a=0,s=!1,c=!0,l=0;l<12;l++){var u=t.nthVertex(e,l);if(!(u[0]<0)){var f=t.hueOf(u);s?(c||t.areInCyclicOrder(i,f,a))&&(c=!1,t.areInCyclicOrder(i,n,f)?(o=u,a=f):(r=u,i=f)):(r=u,o=u,i=f,a=f,s=!0)}}return[r,o]},t.midpoint=function(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]},t.criticalPlaneBelow=function(t){return Math.floor(t-.5)},t.criticalPlaneAbove=function(t){return Math.ceil(t-.5)},t.bisectToLimit=function(e,n){for(var r=t.bisectToSegment(e,n),o=r[0],i=t.hueOf(o),a=r[1],s=0;s<3;s++)if(o[s]!==a[s]){var c=-1,l=255;o[s]<a[s]?(c=t.criticalPlaneBelow(t.trueDelinearized(o[s])),l=t.criticalPlaneAbove(t.trueDelinearized(a[s]))):(c=t.criticalPlaneAbove(t.trueDelinearized(o[s])),l=t.criticalPlaneBelow(t.trueDelinearized(a[s])));for(var u=0;u<8&&!(Math.abs(l-c)<=1);u++){var f=Math.floor((c+l)/2),h=t.CRITICAL_PLANES[f],d=t.setCoordinate(o,h,a,s),p=t.hueOf(d);t.areInCyclicOrder(i,n,p)?(a=d,l=f):(o=d,i=p,c=f)}}return t.midpoint(o,a)},t.inverseChromaticAdaptation=function(t){var e=Math.abs(t),n=Math.max(0,27.13*e/(400-e));return v(t)*Math.pow(n,1/.42)},t.findResultByJ=function(e,n,r){for(var o=11*Math.sqrt(r),i=I.DEFAULT,a=1/Math.pow(1.64-Math.pow(.29,i.n),.73),s=.25*(Math.cos(e+2)+3.8)*(5e4/13)*i.nc*i.ncb,c=Math.sin(e),l=Math.cos(e),u=0;u<5;u++){var f=o/100,h=0===n||0===o?0:n/Math.sqrt(f),d=Math.pow(h*a,1/.9),p=i.aw*Math.pow(f,1/i.c/i.z)/i.nbb,m=23*(p+.305)*d/(23*s+11*d*l+108*d*c),g=m*l,v=m*c,y=(460*p+451*g+288*v)/1403,b=(460*p-891*g-261*v)/1403,$=(460*p-220*g-6300*v)/1403,k=w([t.inverseChromaticAdaptation(y),t.inverseChromaticAdaptation(b),t.inverseChromaticAdaptation($)],t.LINRGB_FROM_SCALED_DISCOUNT);if(k[0]<0||k[1]<0||k[2]<0)return 0;var C=t.Y_FROM_LINRGB[0],M=t.Y_FROM_LINRGB[1],E=t.Y_FROM_LINRGB[2],S=C*k[0]+M*k[1]+E*k[2];if(S<=0)return 0;if(4===u||Math.abs(S-r)<.002)return k[0]>100.01||k[1]>100.01||k[2]>100.01?0:x(k);o-=(S-r)*o/(2*S)}return 0},t.solveToInt=function(e,n,r){if(n<1e-4||r<1e-4||r>99.9999)return function(t){var e=j(O(t));return E(e,e,e)}(r);var o=(e=b(e))/180*Math.PI,i=O(r),a=t.findResultByJ(o,n,i);return 0!==a?a:x(t.bisectToLimit(i,o))},t.solveToCam=function(e,n,r){return D.fromInt(t.solveToInt(e,n,r))},t}();R.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],R.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],R.Y_FROM_LINRGB=[.2126,.7152,.0722],R.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var N=function(){e.from=function(t,n,r){return new e(R.solveToInt(t,n,r))},e.fromInt=function(t){return new e(t)};var t=e.prototype;function e(t){this.argb=t;var e=D.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=T(t),this.argb=t}return t.toInt=function(){return this.argb},t.setInternalState=function(t){var e=D.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=T(t),this.argb=t},i(e,[{key:"hue",get:function(){return this.internalHue},set:function(t){this.setInternalState(R.solveToInt(t,this.internalChroma,this.internalTone))}},{key:"chroma",get:function(){return this.internalChroma},set:function(t){this.setInternalState(R.solveToInt(this.internalHue,t,this.internalTone))}},{key:"tone",get:function(){return this.internalTone},set:function(t){this.setInternalState(R.solveToInt(this.internalHue,this.internalChroma,t))}}]),e}(),F=function(){function t(){}return t.harmonize=function(t,e){var n,r,o,i=N.fromInt(t),a=N.fromInt(e),s=(r=i.hue,o=a.hue,180-Math.abs(Math.abs(r-o)-180)),c=Math.min(.5*s,15),l=b(i.hue+c*(n=i.hue,b(a.hue-n)<=180?1:-1));return N.from(l,i.chroma,i.tone).toInt()},t.hctHue=function(e,n,r){var o=t.cam16Ucs(e,n,r),i=D.fromInt(o),a=D.fromInt(e);return N.from(i.hue,a.chroma,T(e)).toInt()},t.cam16Ucs=function(t,e,n){var r=D.fromInt(t),o=D.fromInt(e),i=r.jstar,a=r.astar,s=r.bstar,c=i+(o.jstar-i)*n,l=a+(o.astar-a)*n,u=s+(o.bstar-s)*n;return D.fromUcs(c,l,u).toInt()},t}(),q=function(){function t(t,e){this.hue=t,this.chroma=e,this.cache=new Map}return t.fromInt=function(e){var n=N.fromInt(e);return t.fromHueAndChroma(n.hue,n.chroma)},t.fromHueAndChroma=function(e,n){return new t(e,n)},t.prototype.tone=function(t){var e=this.cache.get(t);return void 0===e&&(e=N.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e},t}(),H=function(){function t(t,e){var n=N.fromInt(t),r=n.hue,o=n.chroma;e?(this.a1=q.fromHueAndChroma(r,o),this.a2=q.fromHueAndChroma(r,o/3),this.a3=q.fromHueAndChroma(r+60,o/2),this.n1=q.fromHueAndChroma(r,Math.min(o/12,4)),this.n2=q.fromHueAndChroma(r,Math.min(o/6,8))):(this.a1=q.fromHueAndChroma(r,Math.max(48,o)),this.a2=q.fromHueAndChroma(r,16),this.a3=q.fromHueAndChroma(r+60,24),this.n1=q.fromHueAndChroma(r,4),this.n2=q.fromHueAndChroma(r,8)),this.error=q.fromHueAndChroma(25,84)}return t.of=function(e){return new t(e,!1)},t.contentOf=function(e){return new t(e,!0)},t.fromColors=function(e){return t.createPaletteFromColors(!1,e)},t.contentFromColors=function(e){return t.createPaletteFromColors(!0,e)},t.createPaletteFromColors=function(e,n){var r=new t(n.primary,e);if(n.secondary){var o=new t(n.secondary,e);r.a2=o.a1}if(n.tertiary){var i=new t(n.tertiary,e);r.a3=i.a1}if(n.error){var a=new t(n.error,e);r.error=a.a1}if(n.neutral){var s=new t(n.neutral,e);r.n1=s.n1}if(n.neutralVariant){var c=new t(n.neutralVariant,e);r.n2=c.n2}return r},t}(),_=function(){function t(t){this.props=t}return t.light=function(e){return t.lightFromCorePalette(H.of(e))},t.dark=function(e){return t.darkFromCorePalette(H.of(e))},t.lightContent=function(e){return t.lightFromCorePalette(H.contentOf(e))},t.darkContent=function(e){return t.darkFromCorePalette(H.contentOf(e))},t.lightFromCorePalette=function(e){return new t({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(99),onBackground:e.n1.tone(10),surface:e.n1.tone(99),onSurface:e.n1.tone(10),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})},t.darkFromCorePalette=function(e){return new t({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(80),background:e.n1.tone(10),onBackground:e.n1.tone(90),surface:e.n1.tone(10),onSurface:e.n1.tone(90),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})},t.prototype.toJSON=function(){return p({},this.props)},i(t,[{key:"primary",get:function(){return this.props.primary}},{key:"onPrimary",get:function(){return this.props.onPrimary}},{key:"primaryContainer",get:function(){return this.props.primaryContainer}},{key:"onPrimaryContainer",get:function(){return this.props.onPrimaryContainer}},{key:"secondary",get:function(){return this.props.secondary}},{key:"onSecondary",get:function(){return this.props.onSecondary}},{key:"secondaryContainer",get:function(){return this.props.secondaryContainer}},{key:"onSecondaryContainer",get:function(){return this.props.onSecondaryContainer}},{key:"tertiary",get:function(){return this.props.tertiary}},{key:"onTertiary",get:function(){return this.props.onTertiary}},{key:"tertiaryContainer",get:function(){return this.props.tertiaryContainer}},{key:"onTertiaryContainer",get:function(){return this.props.onTertiaryContainer}},{key:"error",get:function(){return this.props.error}},{key:"onError",get:function(){return this.props.onError}},{key:"errorContainer",get:function(){return this.props.errorContainer}},{key:"onErrorContainer",get:function(){return this.props.onErrorContainer}},{key:"background",get:function(){return this.props.background}},{key:"onBackground",get:function(){return this.props.onBackground}},{key:"surface",get:function(){return this.props.surface}},{key:"onSurface",get:function(){return this.props.onSurface}},{key:"surfaceVariant",get:function(){return this.props.surfaceVariant}},{key:"onSurfaceVariant",get:function(){return this.props.onSurfaceVariant}},{key:"outline",get:function(){return this.props.outline}},{key:"outlineVariant",get:function(){return this.props.outlineVariant}},{key:"shadow",get:function(){return this.props.shadow}},{key:"scrim",get:function(){return this.props.scrim}},{key:"inverseSurface",get:function(){return this.props.inverseSurface}},{key:"inverseOnSurface",get:function(){return this.props.inverseOnSurface}},{key:"inversePrimary",get:function(){return this.props.inversePrimary}}]),t}();function V(t){for(var e,n=S(t),r=A(t),o=L(t),i=[n.toString(16),r.toString(16),o.toString(16)],a=g(i.entries());!(e=a()).done;){var s=e.value,c=s[0],l=s[1];1===l.length&&(i[c]="0"+l)}return"#"+i.join("")}function z(t){var e=3===(t=t.replace("#","")).length,n=6===t.length,r=8===t.length;if(!e&&!n&&!r)throw new Error("unexpected hex "+t);var o=0,i=0,a=0;return e?(o=B(t.slice(0,1).repeat(2)),i=B(t.slice(1,2).repeat(2)),a=B(t.slice(2,3).repeat(2))):n?(o=B(t.slice(0,2)),i=B(t.slice(2,4)),a=B(t.slice(4,6))):r&&(o=B(t.slice(2,4)),i=B(t.slice(4,6)),a=B(t.slice(6,8))),(255<<24|(255&o)<<16|(255&i)<<8|255&a)>>>0}function B(t){return parseInt(t,16)}function W(t,e){void 0===e&&(e=[]);var n=H.of(t);return{source:t,schemes:{light:_.light(t),dark:_.dark(t)},palettes:{primary:n.a1,secondary:n.a2,tertiary:n.a3,neutral:n.n1,neutralVariant:n.n2,error:n.error},customColors:e.map((function(e){return function(t,e){var n=e.value,r=n,o=t;e.blend&&(n=F.harmonize(r,o));var i=H.of(n).a1;return{color:e,value:n,light:{color:i.tone(40),onColor:i.tone(100),colorContainer:i.tone(90),onColorContainer:i.tone(10)},dark:{color:i.tone(80),onColor:i.tone(20),colorContainer:i.tone(30),onColorContainer:i.tone(90)}}}(t,e)}))}}function U(t){var e=Math.round,n=t.length,r={};return"rgb"===t.slice(0,3).toLowerCase()?(t=t.replace(" ","").split(","),r[0]=parseInt(t[0].slice("a"===t[3].toLowerCase()?5:4),10),r[1]=parseInt(t[1],10),r[2]=parseInt(t[2],10),r[3]=t[3]?parseFloat(t[3]):-1):(t=n<6?parseInt(String(t[1])+t[1]+t[2]+t[2]+t[3]+t[3]+(n>4?String(t[4])+t[4]:""),16):parseInt(t.slice(1),16),r[0]=t>>16&255,r[1]=t>>8&255,r[2]=255&t,r[3]=9===n||5===n?e((t>>24&255)/255*1e4)/1e4:-1),r}function Y(t,e,n){void 0===n&&(n=.5);var r=Math.round;t=t.trim(),e=e.trim(),n=n<0?-1*n:n;var o=U(t),i=U(e);return"r"===e[0]?"rgb"+("a"===e[3]?"a(":"(")+r((i[0]-o[0])*n+o[0])+","+r((i[1]-o[1])*n+o[1])+","+r((i[2]-o[2])*n+o[2])+(o[3]<0&&i[3]<0?"":","+(o[3]>-1&&i[3]>-1?r(1e4*((i[3]-o[3])*n+o[3]))/1e4:i[3]<0?o[3]:i[3]))+")":"#"+(4294967296+16777216*(o[3]>-1&&i[3]>-1?r(255*((i[3]-o[3])*n+o[3])):i[3]>-1?r(255*i[3]):o[3]>-1?r(255*o[3]):255)+65536*r((i[0]-o[0])*n+o[0])+256*r((i[1]-o[1])*n+o[1])+r((i[2]-o[2])*n+o[2])).toString(16).slice(o[3]>-1||i[3]>-1?1:3)}var X=1,G={uniqueNumber:function(){return X+=1},id:function(t,e){return void 0===t&&(t="xxxxxxxxxx"),void 0===e&&(e="0123456789abcdef"),$.uid(t,e)},mdPreloaderContent:'\n\t\t<span class="preloader-inner">\n\t\t\t<svg viewBox="0 0 36 36">\n\t\t\t\t<circle cx="18" cy="18" r="16"></circle>\n\t\t\t</svg>\n </span>\n '.trim(),iosPreloaderContent:('\n\t\t<span class="preloader-inner">\n\t\t\t'+[0,1,2,3,4,5,6,7].map((function(){return'<span class="preloader-inner-line"></span>'})).join("")+"\n\t\t</span>\n ").trim(),pcPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-circle"></span>\n </span>\n',eventNameToColonCase:function(t){var e;return t.split("").map((function(t,n){return t.match(/[A-Z]/)&&0!==n&&!e?(e=!0,":"+t.toLowerCase()):t.toLowerCase()})).join("")},deleteProps:function(t){$.deleteProps(t)},requestAnimationFrame:function(t){return $.requestAnimationFrame(t)},cancelAnimationFrame:function(t){return $.cancelAnimationFrame(t)},nextTick:function(t,e){return void 0===e&&(e=0),$.nextTick(t,e)},nextFrame:function(t){return $.nextFrame(t)},now:function(){return Date.now()},parseUrlQuery:function(t){return $.urlParam(t)},getTranslate:function(t,e){return void 0===e&&(e="x"),$.getTranslate(t,e)},serializeObject:function(t,e){if(void 0===e&&(e=[]),"string"==typeof t)return t;var n,r=[];function o(t){if(e.length>0){for(var n="",r=0;r<e.length;r+=1)n+=0===r?e[r]:"["+encodeURIComponent(e[r])+"]";return n+"["+encodeURIComponent(t)+"]"}return encodeURIComponent(t)}function i(t){return encodeURIComponent(t)}return Object.keys(t).forEach((function(a){var s;if(Array.isArray(t[a])){s=[];for(var c=0;c<t[a].length;c+=1)Array.isArray(t[a][c])||"object"!=typeof t[a][c]?s.push(o(a)+"[]="+i(t[a][c])):((n=e.slice()).push(a),n.push(String(c)),s.push(G.serializeObject(t[a][c],n)));s.length>0&&r.push(s.join("&"))}else null===t[a]||""===t[a]?r.push(o(a)+"="):"object"==typeof t[a]?((n=e.slice()).push(a),""!==(s=G.serializeObject(t[a],n))&&r.push(s)):void 0!==t[a]&&""!==t[a]?r.push(o(a)+"="+i(t[a])):""===t[a]&&r.push(o(a))})),r.join("&")},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},merge:function(){var t;return(t=$).merge.apply(t,arguments)},extend:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0];return n.splice(0,1),(t=$).assign.apply(t,[o].concat(n))},bindMethods:function(t,e){Object.keys(e).forEach((function(n){G.isObject(e[n])&&Object.keys(e[n]).forEach((function(r){"function"==typeof e[n][r]&&(e[n][r]=e[n][r].bind(t))})),t[n]=e[n]}))},flattenArray:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){for(var t=[],e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(e){Array.isArray(e)?t.push.apply(t,flattenArray.apply(void 0,e)):t.push(e)})),t})),colorHexToRgb:function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?n.slice(1).map((function(t){return parseInt(t,16)})):null},colorRgbToHex:function(t,e,n){return"#"+[t,e,n].map((function(t){var e=t.toString(16);return 1===e.length?"0"+e:e})).join("")},colorRgbToHsl:function(t,e,n){t/=255,e/=255,n/=255;var r,o=Math.max(t,e,n),i=Math.min(t,e,n),a=o-i;0===a?r=0:o===t?r=(e-n)/a%6:o===e?r=(n-t)/a+2:o===n&&(r=(t-e)/a+4);var s=(i+o)/2;return r<0&&(r=6+r),[60*r,0===a?0:a/(1-Math.abs(2*s-1)),s]},colorHslToRgb:function(t,e,n){var r,o=(1-Math.abs(2*n-1))*e,i=t/60,a=o*(1-Math.abs(i%2-1));Number.isNaN(t)||void 0===t?r=[0,0,0]:i<=1?r=[o,a,0]:i<=2?r=[a,o,0]:i<=3?r=[0,o,a]:i<=4?r=[0,a,o]:i<=5?r=[a,0,o]:i<=6&&(r=[o,0,a]);var s=n-o/2;return r.map((function(t){return Math.max(0,Math.min(255,Math.round(255*(t+s))))}))},colorHsbToHsl:function(t,e,n){var r={h:t,s:0,l:0},o=e,i=n;return r.l=(2-o)*i/2,r.s=r.l&&r.l<1?o*i/(r.l<.5?2*r.l:2-2*r.l):r.s,[r.h,r.s,r.l]},colorHslToHsb:function(t,e,n){var r={h:t,s:0,b:0},o=n,i=e*(o<.5?o:1-o);return r.b=o+i,r.s=o>0?2*i/r.b:r.s,[r.h,r.s,r.b]},getShadeTintColors:function(t){var e=G.colorRgbToHsl.apply(G,t),n=[e[0],e[1],Math.max(0,e[2]-.08)],r=[e[0],e[1],Math.max(0,e[2]+.08)];return{shade:G.colorRgbToHex.apply(G,G.colorHslToRgb.apply(G,n)),tint:G.colorRgbToHex.apply(G,G.colorHslToRgb.apply(G,r))}},colorThemeCSSProperties:function(){for(var t,e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(1===r.length?(t=r[0],e=G.colorHexToRgb(t)):3===r.length&&(e=r,t=G.colorRgbToHex.apply(G,e)),!e)return{};var i=function(t){void 0===t&&(t="");var e=W(z("#"+t.replace("#","")));[.05,.08,.11,.12,.14].forEach((function(t,n){e.schemes.light.props["surface"+(n+1)]=z(Y(V(e.schemes.light.props.surface),V(e.schemes.light.props.primary),t)),e.schemes.dark.props["surface"+(n+1)]=z(Y(V(e.schemes.dark.props.surface),V(e.schemes.dark.props.primary),t))}));var n=function(t){return t.split("").map((function(t){return t.toUpperCase()===t&&"-"!==t&&"7"!==t?"-"+t.toLowerCase():t})).join("")},r=function(t){return["tertiary","shadow","scrim","error","background"].filter((function(e){return t.toLowerCase().includes(e)})).length>0},o={},i={};return Object.keys(e.schemes.light.props).forEach((function(t){r(t)||(o[n("--f7-md-"+t)]=V(e.schemes.light.props[t]))})),Object.keys(e.schemes.dark.props).forEach((function(t){r(t)||(i[n("--f7-md-"+t)]=V(e.schemes.dark.props[t]))})),{light:o,dark:i}}(t),a=i.light,s=i.dark,c=G.getShadeTintColors(e),l=G.getShadeTintColors(G.colorHexToRgb(a["--f7-md-primary"])),u=G.getShadeTintColors(G.colorHexToRgb(s["--f7-md-primary"]));return Object.keys(a).forEach((function(t){t.includes("surface-")&&(a[t+"-rgb"]=G.colorHexToRgb(a[t]))})),Object.keys(s).forEach((function(t){t.includes("surface-")&&(s[t+"-rgb"]=G.colorHexToRgb(s[t]))})),{ios:{"--f7-theme-color":"var(--f7-ios-primary)","--f7-theme-color-rgb":"var(--f7-ios-primary-rgb)","--f7-theme-color-shade":"var(--f7-ios-primary-shade)","--f7-theme-color-tint":"var(--f7-ios-primary-tint)"},md:{"--f7-theme-color":"var(--f7-md-primary)","--f7-theme-color-rgb":"var(--f7-md-primary-rgb)","--f7-theme-color-shade":"var(--f7-md-primary-shade)","--f7-theme-color-tint":"var(--f7-md-primary-tint)"},light:p({"--f7-ios-primary":t,"--f7-ios-primary-shade":c.shade,"--f7-ios-primary-tint":c.tint,"--f7-ios-primary-rgb":e.join(", "),"--f7-md-primary-shade":l.shade,"--f7-md-primary-tint":l.tint,"--f7-md-primary-rgb":G.colorHexToRgb(a["--f7-md-primary"]).join(", ")},a),dark:p({"--f7-md-primary-shade":u.shade,"--f7-md-primary-tint":u.tint,"--f7-md-primary-rgb":G.colorHexToRgb(s["--f7-md-primary"]).join(", ")},s)}},colorThemeCSSStyles:function(t){void 0===t&&(t={});var e=function(t){var e="";return Object.keys(t).forEach((function(n){e+=n+":"+t[n]+";"})),e},n=G.colorThemeCSSProperties(t.primary),r=[":root{",e(n.light),"--swiper-theme-color:var(--f7-theme-color);"].concat(Object.keys(t).map((function(e){return"--f7-color-"+e+": "+t[e]+";"})),["}",".dark{",e(n.dark),"}",".ios, .ios .dark{",e(n.ios),"}",".md, .md .dark{",e(n.md),"}"]).join(""),o={};Object.keys(t).forEach((function(e){var n=t[e];o[e]=G.colorThemeCSSProperties(n)}));var i="";return Object.keys(t).forEach((function(n){var r=o[n],a=r.light,s=r.dark,c=r.ios,l=r.md,u="\n\t\t\t--f7-ios-primary: #ffffff;\n\t\t\t--f7-ios-primary-shade: #ebebeb;\n\t\t\t--f7-ios-primary-tint: #ffffff;\n\t\t\t--f7-ios-primary-rgb: 255, 255, 255;\n\t\t\t--f7-md-primary-shade: #eee;\n\t\t\t--f7-md-primary-tint: #fff;\n\t\t\t--f7-md-primary-rgb: 255, 255, 255;\n\t\t\t--f7-md-primary: #fff;\n\t\t\t--f7-md-on-primary: #000;\n\t\t\t--f7-md-primary-container: #fff;\n\t\t\t--f7-md-on-primary-container: #000;\n\t\t\t--f7-md-secondary: #fff;\n\t\t\t--f7-md-on-secondary: #000;\n\t\t\t--f7-md-secondary-container: #555;\n\t\t\t--f7-md-on-secondary-container: #fff;\n\t\t\t--f7-md-surface: #fff;\n\t\t\t--f7-md-on-surface: #000;\n\t\t\t--f7-md-surface-variant: #333;\n\t\t\t--f7-md-on-surface-variant: #fff;\n\t\t\t--f7-md-outline: #fff;\n\t\t\t--f7-md-outline-variant: #fff;\n\t\t\t--f7-md-inverse-surface: #000;\n\t\t\t--f7-md-inverse-on-surface: #fff;\n\t\t\t--f7-md-inverse-primary: #000;\n\t\t\t--f7-md-surface-1: #f8f8f8;\n\t\t\t--f7-md-surface-2: #f1f1f1;\n\t\t\t--f7-md-surface-3: #e7e7e7;\n\t\t\t--f7-md-surface-4: #e1e1e1;\n\t\t\t--f7-md-surface-5: #d7d7d7;\n\t\t\t--f7-md-surface-variant-rgb: 51, 51, 51;\n\t\t\t--f7-md-on-surface-variant-rgb: 255, 255, 255;\n\t\t\t--f7-md-surface-1-rgb: 248, 248, 248;\n\t\t\t--f7-md-surface-2-rgb: 241, 241, 241;\n\t\t\t--f7-md-surface-3-rgb: 231, 231, 231;\n\t\t\t--f7-md-surface-4-rgb: 225, 225, 225;\n\t\t\t--f7-md-surface-5-rgb: 215, 215, 215;\n\t\t\t",f="\n\t\t\t--f7-ios-primary: #000;\n\t\t\t--f7-ios-primary-shade: #000;\n\t\t\t--f7-ios-primary-tint: #232323;\n\t\t\t--f7-ios-primary-rgb: 0, 0, 0;\n\t\t\t--f7-md-primary-shade: #000;\n\t\t\t--f7-md-primary-tint: #232323;\n\t\t\t--f7-md-primary-rgb: 0, 0, 0;\n\t\t\t--f7-md-primary: #000;\n\t\t\t--f7-md-on-primary: #fff;\n\t\t\t--f7-md-primary-container: #000;\n\t\t\t--f7-md-on-primary-container: #fff;\n\t\t\t--f7-md-secondary: #000;\n\t\t\t--f7-md-on-secondary: #fff;\n\t\t\t--f7-md-secondary-container: #aaa;\n\t\t\t--f7-md-on-secondary-container: #000;\n\t\t\t--f7-md-surface: #000;\n\t\t\t--f7-md-on-surface: #fff;\n\t\t\t--f7-md-surface-variant: #ccc;\n\t\t\t--f7-md-on-surface-variant: #000;\n\t\t\t--f7-md-outline: #000;\n\t\t\t--f7-md-outline-variant: #000;\n\t\t\t--f7-md-inverse-surface: #fff;\n\t\t\t--f7-md-inverse-on-surface: #000;\n\t\t\t--f7-md-inverse-primary: #fff;\n\t\t\t--f7-md-surface-1: #070707;\n\t\t\t--f7-md-surface-2: #161616;\n\t\t\t--f7-md-surface-3: #232323;\n\t\t\t--f7-md-surface-4: #303030;\n\t\t\t--f7-md-surface-5: #373737;\n\t\t\t--f7-md-surface-variant-rgb: 204, 204, 204;\n\t\t\t--f7-md-on-surface-variant-rgb: 0, 0, 0;\n\t\t\t--f7-md-surface-1-rgb: 7, 7, 7;\n\t\t\t--f7-md-surface-2-rgb: 22, 22, 22;\n\t\t\t--f7-md-surface-3-rgb: 35, 35, 35;\n\t\t\t--f7-md-surface-4-rgb: 48, 48, 48;\n\t\t\t--f7-md-surface-5-rgb: 55, 55, 55;\n\t\t\t",h="white"===n?u:"black"===n?f:e(a),d="white"===n?u:"black"===n?f:e(s);i+=[".color-"+n+" {",h,"--swiper-theme-color: var(--f7-theme-color);","}",".color-"+n+".dark, .color-"+n+" .dark, .dark .color-"+n+" {",d,"--swiper-theme-color: var(--f7-theme-color);","}",".ios .color-"+n+", .ios.color-"+n+", .ios .dark .color-"+n+", .ios .dark.color-"+n+" {",e(c),"}",".md .color-"+n+", .md.color-"+n+", .md .dark .color-"+n+", .md .dark.color-"+n+" {",e(l),"}",".text-color-"+n+" {","--f7-theme-color-text-color: "+t[n]+";","}",".bg-color-"+n+" {","--f7-theme-color-bg-color: "+t[n]+";","}",".border-color-"+n+" {","--f7-theme-color-border-color: "+t[n]+";","}",".ripple-color-"+n+" {","--f7-theme-color-ripple-color: rgba("+a["--f7-ios-primary-rgb"]+", 0.3);","}"].join("")})),""+r+i}},J=function(){function t(t,e,n){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===n&&(n="");var r=this;r.params=t,e?Array.isArray(e)?r.eventsParents=e.filter((function(t){return t})):r.eventsParents=[e]:r.eventsParents=[],r.eventsListeners={},r.pre=n,r.params&&r.params.on&&Object.keys(r.params.on).forEach((function(t){r.on(t,r.params.on[t])}))}var e=t.prototype;return e.on=function(t,e,n){void 0===n&&(n=!1);var r=this;if("function"!=typeof e)return r;var o=n?"unshift":"push";return t.split(" ").forEach((function(t){var n={owner:"",appName:"",handler:e};if(t.includes("app::")){var i=null;if($.isPage(r)?i=r:$.isPage(null==r?void 0:r.page)?i=r.page:$.isPage(null==r?void 0:r.parent)&&(i=r.parent),i&&i.app&&$.isApp(i.app)){n.owner=i.owner,n.appName=i.appName;var a=i.app,s=t.replace("app::","");a.eventsListeners[s]||(a.eventsListeners[s]=[]),a.eventsListeners[s][o](n)}}else r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][o](n)})),r},e.once=function(t,e,n){void 0===n&&(n=!1);var r=this;if("function"!=typeof e)return r;function o(){if(r.off(t,o),o.proxy){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];o.proxy.apply(r,n),delete o.proxy}}return o.proxy=e,r.on(t,o,n)},e.off=function(t,e){var n=this;return n.eventsListeners?(t?t.split(" ").forEach((function(t){if(void 0===e)n.eventsListeners[t]=[];else if(n.eventsListeners[t])for(var r=n.eventsListeners[t],o=r.length-1;o>=0;o--){var i,a=r[o];a.handler!==e&&(null==(i=a.handler)?void 0:i.proxy)!==e||r.splice(o,1)}})):n.eventsListeners={},n):n},e.emit=function(){var t,e,n,r,o,i=this;if(!i.eventsListeners)return i;for(var a=!1,s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var u=c[0];if(!u)return i;"string"==typeof u||Array.isArray(u)?(u=u.split(" "),i.pre?(e=[],u.forEach((function(t){e.push("."+t),e.push(""+i.pre+t[0].toUpperCase()+t.substr(1))}))):e=u,n=c.slice(1,c.length),r=i,o=i.eventsParents):(a=u.pop,e=u.events,n=u.data,r=u.context||i,o=u.local?[]:u.parents||i.eventsParents);var f=Array.isArray(e)?e:e.split(" "),h=f.map((function(t){return t.replace(/local::|^[.]/,"")})),d=null;if(a)d=u;else{var p=f.filter((function(t){return!t.match(/^local::|^[.]/)}));null!=p&&p.length&&(d={pop:!0,events:p,context:i,data:n,owner:"",appName:""})}return d&&$.isPage(i)&&(d.owner=null==i?void 0:i.owner,d.appName=null==i?void 0:i.appName),h.forEach((function(t){if(i.eventsListeners&&i.eventsListeners[t]){var e=[];i.eventsListeners[t].forEach((function(n){n.owner&&n.appName?a&&n.owner===t.owner&&n.appName===t.appName&&e.push(n.handler):e.push(n.handler)})),e.forEach((function(t){t.apply(r,n)}))}})),d&&(null==(t=o)?void 0:t.length)>0&&o.forEach((function(t){return t.emit(d)})),i},t}(),K=function(t){function e(e,n,r,o){var i;return(i=t.call(this,null,[e])||this).app=e,i.cfg=e.cfg,i.name=n,i.title=r,i.style=o||"./page/"+n+".css",i.owner="",i.appName="",i.path="",i.view=null,i.dom=null,i.$el=null,i.el=null,i.html="",i.css="",i.js="",i.data={},i.param={},i}c(e,t);var n=e.prototype;return n.load=function(t){this.emit("local::load pageLoad",t),this.emit("pageLoad",this)},n.ready=function(t,e,n){this.init(),this.emit("local::ready",t,e,n),this.emit("pageReady",this)},n.init=function(t){var e=this.view;t=t?$(t):e},n.show=function(t,e){t.qus("[name$=-tp]").hide(),t.qus('a[href=""]').attr("href","javascript:;"),this.reset&&this.reset(),this.emit("local::show",t,e),this.emit("pageShow",this)},n.back=function(t,e){t.qus("[name$=-tp]").hide(),t.qus('a[href=""]').attr("href","javascript:;"),this.emit("local::back",t,e),this.emit("pageBack",this)},n.hide=function(t){this.emit("local::hide",t),this.emit("pageHide",this)},n.unload=function(t){this.emit("local::unload",t),this.emit("pageUnload",this)},e}(J),Z=function(t){function e(e,n){var r;return void 0===e&&(e={}),void 0===n&&(n=[]),a(r=t.call(this,e,n)||this).params=e,r}c(e,t);var n=e.prototype;return n.useModuleParams=function(t,e){if(t.params){var n={};Object.keys(t.params).forEach((function(t){void 0!==e[t]&&(n[t]=$.extend({},e[t]))})),$.extend(e,t.params),Object.keys(n).forEach((function(t){$.extend(e[t],n[t])}))}},n.useModulesParams=function(t){var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var r=e.modules[n];r.params&&$.extend(t,r.params)}))},n.useModule=function(t,e){void 0===t&&(t=""),void 0===e&&(e={});var n=this;if(n.modules){var r="string"==typeof t?n.modules[t]:t;r&&(r.instance&&Object.keys(r.instance).forEach((function(t){var e=r.instance[t];n[t]="function"==typeof e?e.bind(n):e})),r.on&&n.on&&Object.keys(r.on).forEach((function(t){n.on(t,r.on[t])})),r.vnode&&(n.vnodeHooks||(n.vnodeHooks={}),Object.keys(r.vnode).forEach((function(t){Object.keys(r.vnode[t]).forEach((function(e){var o=r.vnode[t][e];n.vnodeHooks[e]||(n.vnodeHooks[e]={}),n.vnodeHooks[e][t]||(n.vnodeHooks[e][t]=[]),n.vnodeHooks[e][t].push(o.bind(n))}))}))),r.create&&r.create.bind(n)(e))}},n.useModules=function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var r=t[n]||{};e.useModule(n,r)}))},e.installModule=function(t){var e=this;e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+$.now();if(e.prototype.modules[n]=t,t.proto&&Object.keys(t.proto).forEach((function(n){e.prototype[n]=t.proto[n]})),t.static&&Object.keys(t.static).forEach((function(n){e[n]=t.static[n]})),t.install){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t.install.apply(e,o)}return e},e.use=function(t){var e=this;if(Array.isArray(t))return t.forEach((function(t){return e.installModule(t)})),e;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.installModule.apply(e,[t].concat(r))},i(e,null,[{key:"components",set:function(t){this.use&&this.use(t)}}]),e}(J);function Q(t,e,n){return Q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&s(o,n.prototype),o},Q.apply(null,arguments)}function tt(t){void 0===t&&(t={});var e=t,n=e.defaultSelector,r=e.constructor,o=e.domProp,i=e.app,a=e.addMethods,s={create:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Q(r,i?[i].concat(e):e)},get:function(t){if(void 0===t&&(t=n),t instanceof r)return t;var e=$(t);return 0!==e.length?e[0][o]:void 0},destroy:function(t){var e=s.get(t);if(e&&e.destroy)return e.destroy()}};return a&&Array.isArray(a)&&a.forEach((function(t){s[t]=function(e){void 0===e&&(e=n);for(var r=s.get(e),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(r&&r[t])return r[t].apply(r,i)}})),s}function et(t){void 0===t&&(t={});var e=t,n=e.defaultSelector,r=e.constructor,o=e.app;return $.extend(tt({defaultSelector:n,constructor:r,app:o,domProp:"f7Modal"}),{open:function(t,e,n){var i=$(t);if(i.length>1&&n){var a=$(n).parents(".page");a.length&&i.each((function(t){var e=$(t);e.parents(a)[0]===a[0]&&(i=e)}))}if(i.length>1&&(i=i.eq(i.length-1)),i.length){var s=i[0].f7Modal;if(!s){var c=i.dataset();s=new r(o,p({el:i},c))}return s.open(e)}},close:function(t,e,i){void 0===t&&(t=n);var a=$(t);if(a.length){if(a.length>1){var s;if(i){var c=$(i);c.length&&(s=c.parents(a))}a=s&&s.length>0?s:a.eq(a.length-1)}var l=a[0].f7Modal;if(!l){var u=a.dataset();l=new r(o,p({el:a},u))}return l.close(e)}}})}var nt=[];function rt(t){var e=this;return new Promise((function(n,r){var o,i,a,s=e.instance;if(t){if("string"==typeof t){var c=t.match(/([a-z0-9-]*)/i);if(t.indexOf(".")<0&&c&&c[0].length===t.length){if(!s||s&&!s.params.lazyModulesPath)return void r(new Error('Wia: "lazyModulesPath" app parameter must be specified to fetch module by name'));o=s.params.lazyModulesPath+"/"+t+".js"}else o=t}else"function"==typeof t?a=t:i=t;if(a){var l=a(e,!1);if(!l)return void r(new Error("Wia: Can't find Wia component in specified component function"));if(e.prototype.modules&&e.prototype.modules[l.name])return void n();d(l),n()}if(i){var u=i;if(!u)return void r(new Error("Wia: Can't find Wia component in specified component"));if(e.prototype.modules&&e.prototype.modules[u.name])return void n();d(u),n()}if(o){if(nt.indexOf(o)>=0)return void n();nt.push(o);var f=new Promise((function(t,n){e.request.get(o,(function(r){var i="wia_component_loader_callback_"+$.id(),a=document.createElement("script");a.innerHTML="window."+i+" = function (Wia, WiaAutoInstallComponent) {return "+r.trim()+"}",$("head").append(a);var s=window[i];delete window[i],$(a).remove();var c=s(e,!1);c?(e.prototype.modules&&e.prototype.modules[c.name]||d(c),t()):n(new Error("Wia: Can't find Wia component in "+o+" file"))}),(function(t,e){n(t,e)}))})),h=new Promise((function(t){e.request.get(o.replace(".js",s.rtl?".rtl.css":".css"),(function(e){var n=document.createElement("style");n.innerHTML=e,$("head").append(n),t()}),(function(){t()}))}));Promise.all([f,h]).then((function(){n()})).catch((function(t){r(t)}))}}else r(new Error("Wia: Lazy module must be specified"));function d(t){e.use(t),s&&(s.useModuleParams(t,s.params),s.useModule(t))}}))}function ot(t,e){for(var n=e||{},r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=o||[],s=Object.keys(n).map((function(t){return"_"===t[0]?n[t]?t.replace("_",""):"":t+'="'+n[t]+'"'})).filter((function(t){return!!t})).join(" ");return["path","img","circle","polygon","line","input"].indexOf(t)>=0?("<"+t+" "+s+" />").trim():("<"+t+" "+s+">"+a.filter((function(t){return!!t})).map((function(t){return Array.isArray(t)?t.join(""):t})).join("")+"</"+t+">").trim()}var it={name:"resize",instance:{getSize:function(){var t=this;if(!t.root[0])return{width:0,height:0,left:0,top:0};var e=t.root.offset(),n=[t.root[0].offsetWidth,t.root[0].offsetHeight,e.left,e.top],r=n[0],o=n[1],i=n[2],a=n[3];return t.width=r,t.height=o,t.left=i,t.top=a,{width:r,height:o,left:i,top:a}}},on:{init:function(){var t=this;t.getSize(),window.addEventListener("resize",(function(){t.emit("resize")}),!1),window.addEventListener("orientationchange",(function(){t.emit("orientationchange")}))},orientationchange:function(){this.device.ipad&&(document.body.scrollLeft=0,setTimeout((function(){document.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}};function at(t){var e,n,r;e=function(e){t.emit({events:"click",data:[e]})},$.support.touch?(document.addEventListener("touchstart",(function(t){n=t.changedTouches[0].clientX,r=t.changedTouches[0].clientY}),!0),document.addEventListener("touchend",(function(t){var o=Math.abs(t.changedTouches[0].clientX-n),i=Math.abs(t.changedTouches[0].clientY-r);o<=5&&i<=5&&e.call(this,t)}),!0)):document.addEventListener("click",e,!0),t.on("click",(function(e){var n=$(e.target),r=n.closest("a");r.length>0&&r.attr("href"),Object.keys(t.modules).forEach((function(r){var o=t.modules[r].clicks;o&&(e.preventF7Router||Object.keys(o).forEach((function(r){var i=n.closest(r).eq(0);i.length>0&&o[r].call(t,i,i.dataset(),e)})))}))}))}var st={name:"clicks",params:{clicks:{externalLinks:".ext"}},on:{init:function(){at(this)}}},ct={registrations:[],register:function(t,e){var n=this;return"serviceWorker"in window.navigator&&n.serviceWorker.container?new Promise((function(r,o){n.serviceWorker.container.register(t,e?{scope:e}:{}).then((function(t){ct.registrations.push(t),n.emit("serviceWorkerRegisterSuccess",t),r(t)})).catch((function(t){n.emit("serviceWorkerRegisterError",t),o(t)}))})):new Promise((function(t,e){e(new Error("Service worker is not supported"))}))},unregister:function(t){var e,n=this;return"serviceWorker"in window.navigator&&n.serviceWorker.container?(e=t?Array.isArray(t)?t:[t]:ct.registrations,Promise.all(e.map((function(t){return new Promise((function(e,r){t.unregister().then((function(){ct.registrations.indexOf(t)>=0&&ct.registrations.splice(ct.registrations.indexOf(t),1),n.emit("serviceWorkerUnregisterSuccess",t),e()})).catch((function(e){n.emit("serviceWorkerUnregisterError",t,e),r(e)}))}))})))):new Promise((function(t,e){e(new Error("Service worker is not supported"))}))}},lt={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create:function(){var t=this;$.extend(t,{serviceWorker:{container:"serviceWorker"in window.navigator?window.navigator.serviceWorker:void 0,registrations:ct.registrations,register:ct.register.bind(t),unregister:ct.unregister.bind(t)}})},on:{init:function(){if("serviceWorker"in window.navigator){var t=this;if(!(t.device.cordova||window.Capacitor&&window.Capacitor.isNative)&&t.serviceWorker.container){var e=t.params.serviceWorker.path,n=t.params.serviceWorker.scope;!e||Array.isArray(e)&&!e.length||(Array.isArray(e)?e:[e]).forEach((function(e){t.serviceWorker.register(e,n)}))}}}}},ut=G.extend,ft=G.nextFrame,ht=G.colorThemeCSSStyles,dt=d.support,pt=d.device,mt={version:"1.0.1",el:"body",root:"body",theme:"auto",language:window.navigator.language,routes:[],name:"App",lazyModulesPath:null,initOnDeviceReady:!0,darkMode:void 0,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null,colors:{primary:"#007aff",red:"#ff3b30",green:"#4cd964",blue:"#2196f3",pink:"#ff2d55",yellow:"#ffcc00",orange:"#ff9500",purple:"#9c27b0",deeppurple:"#673ab7",lightblue:"#5ac8fa",teal:"#009688",lime:"#cddc39",deeporange:"#ff6b22",white:"#ffffff",black:"#000000"}},gt=function(t){function e(n){var r;if(void 0===n&&(n={}),r=t.call(this,n)||this,e.instance&&"undefined"!=typeof window)throw new Error("App is already initialized and can't be initialized more than once");var o=ut({},n),i=a(r);return d.App=e,e.instance=i,i.device=pt,i.support=dt,console.log("App constructor",{Device:pt,Support:dt}),i.useModulesParams(mt),i.params=ut(mt,n),n.root&&!n.el&&(i.params.el=n.root),d.isPage=function(t){return t instanceof K},d.isApp=function(t){return t instanceof e},ut(i,{owner:i.params.owner,name:i.params.name,id:i.params.owner+"."+i.params.name,version:i.params.version,routes:i.params.routes,language:i.params.language,cfg:i.params.cfg,api:i.params.api,theme:"auto"===i.params.theme?pt.ios?"ios":pt.desktop?"pc":"md":i.params.theme,passedParams:o,online:window.navigator.onLine,colors:i.params.colors,darkMode:i.params.darkMode}),n.store&&(i.params.store=params.store),i.touchEvents={start:dt.touch?"touchstart":dt.pointerEvents?"pointerdown":"mousedown",move:dt.touch?"touchmove":dt.pointerEvents?"pointermove":"mousemove",end:dt.touch?"touchend":dt.pointerEvents?"pointerup":"mouseup"},i.useModules(),i.initData(),i.params.init&&(pt.cordova&&i.params.initOnDeviceReady?d(document).on("deviceready",(function(){i.init()})):i.init()),i||a(r)}c(e,t);var n=e.prototype;return n.load=function(t){this.emit("local::load appLoad",t)},n.show=function(t,e){this.emit("local::show appShow",t,e)},n.hide=function(){this.emit("local::hide appHide")},n.unload=function(){this.emit("local::unload appUnload")},n.setColorTheme=function(t){t&&(this.colors.primary=t,this.setColors())},n.setColors=function(){var t=this;t.colorsStyleEl||(t.colorsStyleEl=document.createElement("style"),document.head.appendChild(t.colorsStyleEl)),t.colorsStyleEl.textContent=ht(t.colors)},n.mount=function(t){var e=this,n=d(t||e.params.el).eq(0);ut(e,{root:n,$el:n,el:null==n?void 0:n[0],rtl:"rtl"===n.css("direction")}),e.root&&e.root[0]&&(e.root[0].wia=e),e.$el&&e.$el[0]&&(e.$el[0].wia=e),e.el.f7=e;var r="(prefers-color-scheme: dark)",o="(prefers-color-scheme: light)";e.mq={},window.matchMedia&&(e.mq.dark=window.matchMedia(r),e.mq.light=window.matchMedia(o)),e.colorSchemeListener=function(t){var n=t.matches,i=t.media;if(n){var a=document.querySelector("html");i===r?(a.classList.add("dark"),e.darkMode=!0,e.emit("darkModeChange",!0)):i===o&&(a.classList.remove("dark"),e.darkMode=!1,e.emit("darkModeChange",!1))}},e.emit("mount")},n.initData=function(){var t=this;t.data={},t.params.data&&"function"==typeof t.params.data?d.extend(t.data,t.params.data.bind(t)()):t.params.data&&d.extend(t.data,t.params.data),t.methods={},t.params.methods&&Object.keys(t.params.methods).forEach((function(e){"function"==typeof t.params.methods[e]?t.methods[e]=t.params.methods[e].bind(t):t.methods[e]=t.params.methods[e]}))},n.enableAutoDarkTheme=function(){if(window.matchMedia){var t=this,e=document.querySelector("html");t.mq.dark&&t.mq.light&&(t.mq.dark.addListener(t.colorSchemeListener),t.mq.light.addListener(t.colorSchemeListener)),t.mq.dark&&t.mq.dark.matches?(e.classList.add("dark"),t.darkMode=!0,t.emit("darkModeChange",!0)):t.mq.light&&t.mq.light.matches&&(e.classList.remove("dark"),t.darkMode=!1,t.emit("darkModeChange",!1))}},n.disableAutoDarkTheme=function(){if(window.matchMedia){var t=this;t.mq.dark&&t.mq.dark.removeListener(t.colorSchemeListener),t.mq.light&&t.mq.light.removeListener(t.colorSchemeListener)}},n.setDarkMode=function(t){var e=this;"auto"===t?e.enableAutoDarkMode():(e.disableAutoDarkMode(),d("html")[t?"addClass":"removeClass"]("dark"),e.darkMode=t)},n.initAppComponent=function(t){var e=this;e.router.componentLoader(e.params.component,e.params.componentUrl,{componentOptions:{el:e.$el[0]}},(function(n){e.$el=d(n),e.$el[0].wia=e,e.$elComponent=n.f7Component,e.el=e.$el[0],t&&t()}),(function(){}))},n.init=function(t){var e=this;e.setColors(),e.mount(t);var n=function(){if(e.initialized)return e;var t,n,r;e.$el.addClass("framework7-initializing"),e.rtl&&d("html").attr("dir","rtl"),void 0===e.params.darkMode?e.darkMode=d("html").hasClass("dark"):e.setDarkMode(e.params.darkMode),window.addEventListener("offline",(function(){e.online=!1,e.emit("offline"),e.emit("connection",!1)})),window.addEventListener("online",(function(){e.online=!0,e.emit("online"),e.emit("connection",!0)})),e.$el.addClass("framework7-root"),d("html").removeClass("ios md pc").addClass(e.theme),e.params.iosTranslucentBars&&"ios"===e.theme&&d("html").addClass("ios-translucent-bars"),e.params.iosTranslucentModals&&"ios"===e.theme&&d("html").addClass("ios-translucent-modals"),ft((function(){e.$el.removeClass("framework7-initializing")})),t=[],n=document.querySelector("html"),r=document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]'),n&&(pt.standalone&&pt.ios&&r&&"black-translucent"===r.content&&t.push("device-full-viewport"),t.push("device-pixel-ratio-"+Math.floor(pt.pixelRatio)),pt.os&&!pt.desktop?t.push("device-"+pt.os):pt.desktop&&(t.push("device-desktop"),pt.os&&t.push("device-"+pt.os)),(pt.cordova||pt.phonegap)&&t.push("device-cordova"),t.forEach((function(t){n.classList.add(t)}))),e.initialized=!0,e.emit("init")};return e.params.component||e.params.componentUrl?e.initAppComponent((function(){n()})):n(),e},n.loadModule=function(t){e.loadModule(t),this[t.name].init&&this[t.name].init()},n.loadModules=function(){return e.loadModules.apply(e,arguments)},n.getVnodeHooks=function(t,e){var n=this;return n.vnodeHooks&&n.vnodeHooks[t]&&n.vnodeHooks[t][e]||[]},i(e,[{key:"$",get:function(){return d}}],[{key:"Dom",get:function(){return d}},{key:"$",get:function(){return d}},{key:"Module",get:function(){return Z}},{key:"Event",get:function(){return J}},{key:"Class",get:function(){return Z}},{key:"Events",get:function(){return J}}]),e}(Z);gt.apps={},gt.jsx=ot,gt.ModalMethods=et,gt.ConstructorMethods=tt,gt.loadModule=rt,gt.loadModules=function(t){return Promise.all(t.map((function(t){return gt.loadModule(t)})))},gt.support=dt,gt.device=pt,gt.utils=G,gt.use([it,st,lt]);var vt,yt,bt,wt,$t={normal:"nor",retina:"ret",srcset:"set",threshold:0},kt=window.innerHeight,Ct=St(),Mt=document.body.classList.contains("srcset")||"srcset"in document.createElement("img"),Et=window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI,xt=function(){function t(t){vt=$.assign({},$t,t)}var e=t.prototype;return e.start=function(t){return["scroll","resize"].forEach((function(e){return t.addEventListener(e,At)})),wt=t,this},e.stop=function(){return["scroll","resize"].forEach((function(t){return wt.removeEventListener(t,At)})),this},e.update=function(){setTimeout((function(){Ot(),Tt()}),1)},t}();function St(){return window.scrollY||window.pageYOffset}function At(){Ct=St(),yt||(window.requestAnimationFrame((function(){return Tt()})),yt=!0)}function Lt(t){var e=Ct,n=e+kt,r=function(t){return t.getBoundingClientRect().top+Ct}(t),o=r+t.offsetHeight,i=vt.threshold/100*kt;return o>=e-i&&r<=n+i}function Tt(){if(bt)return kt=window.innerHeight,bt.forEach((function(t){return Lt(t)&&function(t){if($.emit("lazy:src:before",t),Mt&&t.hasAttribute(vt.srcset))t.setAttribute("srcset",t.getAttribute(vt.srcset));else{var e=Et>1&&t.getAttribute(vt.retina)||t.getAttribute(vt.normal);t.setAttribute("src",e),console.log("set src:"+e)}$.emit("lazy:src:after",t),[vt.normal,vt.retina,vt.srcset].forEach((function(e){return t.removeAttribute(e)})),Ot()}(t)})),yt=!1,this}function Ot(t){return bt=t?Array.prototype.slice.call(t.querySelectorAll("["+vt.normal+"]")):Array.prototype.slice.call(document.querySelectorAll("["+vt.normal+"]")),this}var Pt=[],jt=[],It=function(t){function e(e,n){var r,o=a(r=t.call(this,n,[e])||this);return o.params=G.extend({},n),o.opened=!1,a(r)||a(r)}c(e,t);var n=e.prototype;return n.onOpen=function(){var t=this;t.opened=!0,Pt.push(t),$("html").addClass("with-modal-"+t.type.toLowerCase()),t.$el.trigger("modal:open "+t.type.toLowerCase()+":open"),t.emit("local::open modalOpen "+t.type+"Open",t)},n.onOpened=function(){var t=this;t.$el.trigger("modal:opened "+t.type.toLowerCase()+":opened"),t.emit("local::opened modalOpened "+t.type+"Opened",t)},n.onClose=function(){var t=this;t.opened=!1,t.type&&t.$el&&(Pt.splice(Pt.indexOf(t),1),$("html").removeClass("with-modal-"+t.type.toLowerCase()),t.$el.trigger("modal:close "+t.type.toLowerCase()+":close"),t.emit("local::close modalClose "+t.type+"Close",t))},n.onClosed=function(){var t=this;t.type&&t.$el&&(t.$el.removeClass("modal-out"),t.$el.hide(),t.$el.trigger("modal:closed "+t.type.toLowerCase()+":closed"),t.emit("local::closed modalClosed "+t.type+"Closed",t))},n.open=function(t){var e,n=this,r=n.app,o=n.$el,i=n.type,a=n.$backdropEl,s=n.params.moveToRoot,c=!0;if(void 0!==t?c=t:void 0!==n.params.animate&&(c=n.params.animate),!o||o.hasClass("modal-in"))return n;if("dialog"===i&&r.params.modal.queueDialogs&&($(".dialog.modal-in").length>0?e=!0:Pt.length>0&&Pt.forEach((function(t){"dialog"===t.type&&(e=!0)})),e))return jt.push(n),n;var l=o.parent(),u=o.parents(document).length>0;function f(){o.hasClass("modal-out")?n.onClosed():o.hasClass("modal-in")&&n.onOpened()}return s&&r.params.modal.moveToRoot&&!l.is(r.root)&&(r.root.append(o),n.once(i+"Closed",(function(){u?l.append(o):o.remove()}))),o.show(),n._clientLeft=o[0].clientLeft,c?(a&&(a.removeClass("not-animated"),a.addClass("backdrop-in")),o.animationEnd((function(){f()})),o.transitionEnd((function(){f()})),o.removeClass("modal-out not-animated").addClass("modal-in"),n.onOpen()):(a&&a.addClass("backdrop-in not-animated"),o.removeClass("modal-out").addClass("modal-in not-animated"),n.onOpen(),n.onOpened()),n},n.close=function(t){var e=this,n=e.$el,r=e.$backdropEl,o=!0;if(void 0!==t?o=t:void 0!==e.params.animate&&(o=e.params.animate),!n||!n.hasClass("modal-in"))return jt.indexOf(e)>=0&&jt.splice(jt.indexOf(e),1),e;if(r){var i=!0;"popup"===e.type&&e.$el.prevAll(".popup.modal-in").each((function(t,n){var r=n.f7Modal;r&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl===e.backdropEl&&(i=!1)})),i&&(r[o?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}function a(){n.hasClass("modal-out")?e.onClosed():n.hasClass("modal-in")&&e.onOpened()}return n[o?"removeClass":"addClass"]("not-animated"),o?(n.animationEnd((function(){a()})),n.transitionEnd((function(){a()})),n.removeClass("modal-in").addClass("modal-out"),e.onClose()):(n.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),e.onClose(),e.onClosed()),"dialog"===e.type&&0!==jt.length&&jt.shift().open(),e},n.destroy=function(){var t=this;t.destroyed||(t.emit("local::beforeDestroy modalBeforeDestroy "+t.type+"BeforeDestroy",t),t.$el&&(t.$el.trigger("modal:beforedestroy "+t.type.toLowerCase()+":beforedestroy"),t.$el.length&&t.$el[0].f7Modal&&delete t.$el[0].f7Modal),G.deleteProps(t),t.destroyed=!0)},e}(J),Dt=$.support,Rt=$.device;t.Ajax=e,t.App=gt,t.Constructors=tt,t.Device=Rt,t.Event=J,t.Lazy=xt,t.Modal=It,t.Modals=et,t.Module=Z,t.Page=K,t.Resize=it,t.SW=lt,t.Support=Dt,t.Utils=G,t.jsx=ot,t.loadModule=rt},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@wiajs/core"]={});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wiajs/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "wia app core package. refer to Framework7.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "dist/core.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dev": "cross-env NODE_ENV=development gulp cjs",
|
|
11
11
|
"dev:umd": "cross-env NODE_ENV=development gulp umd",
|
|
12
12
|
"dev:esm": "cross-env NODE_ENV=development gulp esm",
|
|
13
|
-
"release": "bash release.sh"
|
|
13
|
+
"release": "bash release.sh"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
@@ -44,6 +44,5 @@
|
|
|
44
44
|
"gulp": "^4.0.2",
|
|
45
45
|
"rollup": "^3.25.1",
|
|
46
46
|
"terser": "^5.18.0"
|
|
47
|
-
}
|
|
48
|
-
"dependencies": {}
|
|
47
|
+
}
|
|
49
48
|
}
|