@sveltia/cms 0.101.0 → 0.102.0

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.
@@ -147,7 +147,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
147
147
  Arguments: `+Array.prototype.slice.call(r).join("")+`
148
148
  `+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var uS={};function nI(t,e){Xe.deprecationHandler!=null&&Xe.deprecationHandler(t,e),uS[t]||(tI(e),uS[t]=!0)}Xe.suppressDeprecationWarnings=!1;Xe.deprecationHandler=null;function _s(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function IU(t){var e,n;for(n in t)en(t,n)&&(e=t[n],_s(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function uy(t,e){var n=wa({},t),r;for(r in e)en(e,r)&&(El(t[r])&&El(e[r])?(n[r]={},wa(n[r],t[r]),wa(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)en(t,r)&&!en(e,r)&&El(t[r])&&(n[r]=wa({},n[r]));return n}function $0(t){t!=null&&this.set(t)}var dy;Object.keys?dy=Object.keys:dy=function(t){var e,n=[];for(e in t)en(t,e)&&n.push(e);return n};var PU={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function OU(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return _s(r)?r.call(e,n):r}function ls(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qh=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,m_={},au={};function ht(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(au[t]=i),e&&(au[e[0]]=function(){return ls(i.apply(this,arguments),e[1],e[2])}),n&&(au[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function NU(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function LU(t){var e=t.match(I0),n,r;for(n=0,r=e.length;n<r;n++)au[e[n]]?e[n]=au[e[n]]:e[n]=NU(e[n]);return function(i){var o="",s;for(s=0;s<r;s++)o+=_s(e[s])?e[s].call(i,t):e[s];return o}}function Rp(t,e){return t.isValid()?(e=rI(e,t.localeData()),m_[e]=m_[e]||LU(e),m_[e](t)):t.localeData().invalidDate()}function rI(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for(Qh.lastIndex=0;n>=0&&Qh.test(t);)t=t.replace(Qh,r),Qh.lastIndex=0,n-=1;return t}var RU={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function FU(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var DU="Invalid date";function MU(){return this._invalidDate}var zU="%d",UU=/\d{1,2}/;function jU(t){return this._ordinal.replace("%d",t)}var BU={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qU(t,e,n,r){var i=this._relativeTime[n];return _s(i)?i(t,e,n,r):i.replace(/%d/i,t)}function HU(t,e){var n=this._relativeTime[t>0?"future":"past"];return _s(n)?n(e):n.replace(/%s/i,e)}var dS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function lo(t){return typeof t=="string"?dS[t]||dS[t.toLowerCase()]:void 0}function P0(t){var e={},n,r;for(r in t)en(t,r)&&(n=lo(r),n&&(e[n]=t[r]));return e}var GU={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function WU(t){var e=[],n;for(n in t)en(t,n)&&e.push({unit:n,priority:GU[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}var iI=/\d/,Gi=/\d\d/,oI=/\d{3}/,O0=/\d{4}/,jm=/[+-]?\d{6}/,Fn=/\d\d?/,sI=/\d\d\d\d?/,aI=/\d\d\d\d\d\d?/,Bm=/\d{1,3}/,N0=/\d{1,4}/,qm=/[+-]?\d{1,6}/,od=/\d+/,Hm=/[+-]?\d+/,KU=/Z|[+-]\d\d:?\d\d/gi,Gm=/Z|[+-]\d\d(?::?\d\d)?/gi,VU=/[+-]?\d+(\.\d{1,3})?/,uh=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,sd=/^[1-9]\d?/,L0=/^([1-9]\d|\d)/,dg;dg={};function at(t,e,n){dg[t]=_s(e)?e:function(r,i){return r&&n?n:e}}function YU(t,e){return en(dg,t)?dg[t](e._strict,e._locale):new RegExp(ZU(t))}function ZU(t){return Ws(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,i,o){return n||r||i||o}))}function Ws(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ji(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Dt(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=Ji(e)),n}var fy={};function mn(t,e){var n,r=e,i;for(typeof t=="string"&&(t=[t]),Js(e)&&(r=function(o,s){s[e]=Dt(o)}),i=t.length,n=0;n<i;n++)fy[t[n]]=r}function dh(t,e){mn(t,function(n,r,i,o){i._w=i._w||{},e(n,i._w,i,o)})}function JU(t,e,n){e!=null&&en(fy,t)&&fy[t](e,n._a,n,t)}function Wm(t){return t%4===0&&t%100!==0||t%400===0}var Xr=0,Ds=1,Vo=2,xr=3,vo=4,Ms=5,gl=6,XU=7,QU=8;ht("Y",0,0,function(){var t=this.year();return t<=9999?ls(t,4):"+"+t});ht(0,["YY",2],0,function(){return this.year()%100});ht(0,["YYYY",4],0,"year");ht(0,["YYYYY",5],0,"year");ht(0,["YYYYYY",6,!0],0,"year");at("Y",Hm);at("YY",Fn,Gi);at("YYYY",N0,O0);at("YYYYY",qm,jm);at("YYYYYY",qm,jm);mn(["YYYYY","YYYYYY"],Xr);mn("YYYY",function(t,e){e[Xr]=t.length===2?Xe.parseTwoDigitYear(t):Dt(t)});mn("YY",function(t,e){e[Xr]=Xe.parseTwoDigitYear(t)});mn("Y",function(t,e){e[Xr]=parseInt(t,10)});function uf(t){return Wm(t)?366:365}Xe.parseTwoDigitYear=function(t){return Dt(t)+(Dt(t)>68?1900:2e3)};var lI=ad("FullYear",!0);function e4(){return Wm(this.year())}function ad(t,e){return function(n){return n!=null?(cI(this,t,n),Xe.updateOffset(this,e),this):$f(this,t)}}function $f(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function cI(t,e,n){var r,i,o,s,a;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=t.date(),a=a===29&&s===1&&!Wm(o)?28:a,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function t4(t){return t=lo(t),_s(this[t])?this[t]():this}function n4(t,e){if(typeof t=="object"){t=P0(t);var n=WU(t),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(t=lo(t),_s(this[t]))return this[t](e);return this}function r4(t,e){return(t%e+e)%e}var sr;Array.prototype.indexOf?sr=Array.prototype.indexOf:sr=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function R0(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=r4(e,12);return t+=(e-n)/12,n===1?Wm(t)?29:28:31-n%7%2}ht("M",["MM",2],"Mo",function(){return this.month()+1});ht("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});ht("MMMM",0,0,function(t){return this.localeData().months(this,t)});at("M",Fn,sd);at("MM",Fn,Gi);at("MMM",function(t,e){return e.monthsShortRegex(t)});at("MMMM",function(t,e){return e.monthsRegex(t)});mn(["M","MM"],function(t,e){e[Ds]=Dt(t)-1});mn(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);i!=null?e[Ds]=i:Ct(n).invalidMonth=t});var i4="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),uI="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dI=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,o4=uh,s4=uh;function a4(t,e){return t?Io(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||dI).test(e)?"format":"standalone"][t.month()]:Io(this._months)?this._months:this._months.standalone}function l4(t,e){return t?Io(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[dI.test(e)?"format":"standalone"][t.month()]:Io(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function c4(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=vs([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?e==="MMM"?(i=sr.call(this._shortMonthsParse,s),i!==-1?i:null):(i=sr.call(this._longMonthsParse,s),i!==-1?i:null):e==="MMM"?(i=sr.call(this._shortMonthsParse,s),i!==-1?i:(i=sr.call(this._longMonthsParse,s),i!==-1?i:null)):(i=sr.call(this._longMonthsParse,s),i!==-1?i:(i=sr.call(this._shortMonthsParse,s),i!==-1?i:null))}function u4(t,e,n){var r,i,o;if(this._monthsParseExact)return c4.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=vs([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function fI(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Dt(e);else if(e=t.localeData().monthsParse(e),!Js(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,R0(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function hI(t){return t!=null?(fI(this,t),Xe.updateOffset(this,!0),this):$f(this,"Month")}function d4(){return R0(this.year(),this.month())}function f4(t){return this._monthsParseExact?(en(this,"_monthsRegex")||pI.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(en(this,"_monthsShortRegex")||(this._monthsShortRegex=o4),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function h4(t){return this._monthsParseExact?(en(this,"_monthsRegex")||pI.call(this),t?this._monthsStrictRegex:this._monthsRegex):(en(this,"_monthsRegex")||(this._monthsRegex=s4),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pI(){function t(l,u){return u.length-l.length}var e=[],n=[],r=[],i,o,s,a;for(i=0;i<12;i++)o=vs([2e3,i]),s=Ws(this.monthsShort(o,"")),a=Ws(this.months(o,"")),e.push(s),n.push(a),r.push(a),r.push(s);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function p4(t,e,n,r,i,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,i,o,s),a}function If(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function fg(t,e,n){var r=7+e-n,i=(7+If(t,0,r).getUTCDay()-e)%7;return-i+r-1}function gI(t,e,n,r,i){var o=(7+n-r)%7,s=fg(t,r,i),a=1+7*(e-1)+o+s,l,u;return a<=0?(l=t-1,u=uf(l)+a):a>uf(t)?(l=t+1,u=a-uf(t)):(l=t,u=a),{year:l,dayOfYear:u}}function Pf(t,e,n){var r=fg(t.year(),e,n),i=Math.floor((t.dayOfYear()-r-1)/7)+1,o,s;return i<1?(s=t.year()-1,o=i+Ks(s,e,n)):i>Ks(t.year(),e,n)?(o=i-Ks(t.year(),e,n),s=t.year()+1):(s=t.year(),o=i),{week:o,year:s}}function Ks(t,e,n){var r=fg(t,e,n),i=fg(t+1,e,n);return(uf(t)-r+i)/7}ht("w",["ww",2],"wo","week");ht("W",["WW",2],"Wo","isoWeek");at("w",Fn,sd);at("ww",Fn,Gi);at("W",Fn,sd);at("WW",Fn,Gi);dh(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Dt(t)});function g4(t){return Pf(t,this._week.dow,this._week.doy).week}var m4={dow:0,doy:6};function v4(){return this._week.dow}function _4(){return this._week.doy}function b4(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function y4(t){var e=Pf(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}ht("d",0,"do","day");ht("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});ht("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});ht("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});ht("e",0,0,"weekday");ht("E",0,0,"isoWeekday");at("d",Fn);at("e",Fn);at("E",Fn);at("dd",function(t,e){return e.weekdaysMinRegex(t)});at("ddd",function(t,e){return e.weekdaysShortRegex(t)});at("dddd",function(t,e){return e.weekdaysRegex(t)});dh(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);i!=null?e.d=i:Ct(n).invalidWeekday=t});dh(["d","e","E"],function(t,e,n,r){e[r]=Dt(t)});function w4(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function x4(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function F0(t,e){return t.slice(e,7).concat(t.slice(0,e))}var k4="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mI="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),S4="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),E4=uh,T4=uh,C4=uh;function A4(t,e){var n=Io(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?F0(n,this._week.dow):t?n[t.day()]:n}function $4(t){return t===!0?F0(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function I4(t){return t===!0?F0(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function P4(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=vs([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?e==="dddd"?(i=sr.call(this._weekdaysParse,s),i!==-1?i:null):e==="ddd"?(i=sr.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=sr.call(this._minWeekdaysParse,s),i!==-1?i:null):e==="dddd"?(i=sr.call(this._weekdaysParse,s),i!==-1||(i=sr.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=sr.call(this._minWeekdaysParse,s),i!==-1?i:null)):e==="ddd"?(i=sr.call(this._shortWeekdaysParse,s),i!==-1||(i=sr.call(this._weekdaysParse,s),i!==-1)?i:(i=sr.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=sr.call(this._minWeekdaysParse,s),i!==-1||(i=sr.call(this._weekdaysParse,s),i!==-1)?i:(i=sr.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function O4(t,e,n){var r,i,o;if(this._weekdaysParseExact)return P4.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=vs([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function N4(t){if(!this.isValid())return t!=null?this:NaN;var e=$f(this,"Day");return t!=null?(t=w4(t,this.localeData()),this.add(t-e,"d")):e}function L4(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function R4(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=x4(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function F4(t){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||D0.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(en(this,"_weekdaysRegex")||(this._weekdaysRegex=E4),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function D4(t){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||D0.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(en(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=T4),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function M4(t){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||D0.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(en(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=C4),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function D0(){function t(d,f){return f.length-d.length}var e=[],n=[],r=[],i=[],o,s,a,l,u;for(o=0;o<7;o++)s=vs([2e3,1]).day(o),a=Ws(this.weekdaysMin(s,"")),l=Ws(this.weekdaysShort(s,"")),u=Ws(this.weekdays(s,"")),e.push(a),n.push(l),r.push(u),i.push(a),i.push(l),i.push(u);e.sort(t),n.sort(t),r.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function M0(){return this.hours()%12||12}function z4(){return this.hours()||24}ht("H",["HH",2],0,"hour");ht("h",["hh",2],0,M0);ht("k",["kk",2],0,z4);ht("hmm",0,0,function(){return""+M0.apply(this)+ls(this.minutes(),2)});ht("hmmss",0,0,function(){return""+M0.apply(this)+ls(this.minutes(),2)+ls(this.seconds(),2)});ht("Hmm",0,0,function(){return""+this.hours()+ls(this.minutes(),2)});ht("Hmmss",0,0,function(){return""+this.hours()+ls(this.minutes(),2)+ls(this.seconds(),2)});function vI(t,e){ht(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}vI("a",!0);vI("A",!1);function _I(t,e){return e._meridiemParse}at("a",_I);at("A",_I);at("H",Fn,L0);at("h",Fn,sd);at("k",Fn,sd);at("HH",Fn,Gi);at("hh",Fn,Gi);at("kk",Fn,Gi);at("hmm",sI);at("hmmss",aI);at("Hmm",sI);at("Hmmss",aI);mn(["H","HH"],xr);mn(["k","kk"],function(t,e,n){var r=Dt(t);e[xr]=r===24?0:r});mn(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});mn(["h","hh"],function(t,e,n){e[xr]=Dt(t),Ct(n).bigHour=!0});mn("hmm",function(t,e,n){var r=t.length-2;e[xr]=Dt(t.substr(0,r)),e[vo]=Dt(t.substr(r)),Ct(n).bigHour=!0});mn("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[xr]=Dt(t.substr(0,r)),e[vo]=Dt(t.substr(r,2)),e[Ms]=Dt(t.substr(i)),Ct(n).bigHour=!0});mn("Hmm",function(t,e,n){var r=t.length-2;e[xr]=Dt(t.substr(0,r)),e[vo]=Dt(t.substr(r))});mn("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[xr]=Dt(t.substr(0,r)),e[vo]=Dt(t.substr(r,2)),e[Ms]=Dt(t.substr(i))});function U4(t){return(t+"").toLowerCase().charAt(0)==="p"}var j4=/[ap]\.?m?\.?/i,B4=ad("Hours",!0);function q4(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var bI={calendar:PU,longDateFormat:RU,invalidDate:DU,ordinal:zU,dayOfMonthOrdinalParse:UU,relativeTime:BU,months:i4,monthsShort:uI,week:m4,weekdays:k4,weekdaysMin:S4,weekdaysShort:mI,meridiemParse:j4},qn={},Dd={},Of;function H4(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function fS(t){return t&&t.toLowerCase().replace("_","-")}function G4(t){for(var e=0,n,r,i,o;e<t.length;){for(o=fS(t[e]).split("-"),n=o.length,r=fS(t[e+1]),r=r?r.split("-"):null;n>0;){if(i=Km(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&H4(o,r)>=n-1)break;n--}e++}return Of}function W4(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Km(t){var e=null,n;if(qn[t]===void 0&&typeof module<"u"&&module&&module.exports&&W4(t))try{e=Of._abbr,n=require,n("./locale/"+t),Pa(e)}catch{qn[t]=null}return qn[t]}function Pa(t,e){var n;return t&&(yi(e)?n=ia(t):n=z0(t,e),n?Of=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Of._abbr}function z0(t,e){if(e!==null){var n,r=bI;if(e.abbr=t,qn[t]!=null)nI("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=qn[t]._config;else if(e.parentLocale!=null)if(qn[e.parentLocale]!=null)r=qn[e.parentLocale]._config;else if(n=Km(e.parentLocale),n!=null)r=n._config;else return Dd[e.parentLocale]||(Dd[e.parentLocale]=[]),Dd[e.parentLocale].push({name:t,config:e}),null;return qn[t]=new $0(uy(r,e)),Dd[t]&&Dd[t].forEach(function(i){z0(i.name,i.config)}),Pa(t),qn[t]}else return delete qn[t],null}function K4(t,e){if(e!=null){var n,r,i=bI;qn[t]!=null&&qn[t].parentLocale!=null?qn[t].set(uy(qn[t]._config,e)):(r=Km(t),r!=null&&(i=r._config),e=uy(i,e),r==null&&(e.abbr=t),n=new $0(e),n.parentLocale=qn[t],qn[t]=n),Pa(t)}else qn[t]!=null&&(qn[t].parentLocale!=null?(qn[t]=qn[t].parentLocale,t===Pa()&&Pa(t)):qn[t]!=null&&delete qn[t]);return qn[t]}function ia(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Of;if(!Io(t)){if(e=Km(t),e)return e;t=[t]}return G4(t)}function V4(){return dy(qn)}function U0(t){var e,n=t._a;return n&&Ct(t).overflow===-2&&(e=n[Ds]<0||n[Ds]>11?Ds:n[Vo]<1||n[Vo]>R0(n[Xr],n[Ds])?Vo:n[xr]<0||n[xr]>24||n[xr]===24&&(n[vo]!==0||n[Ms]!==0||n[gl]!==0)?xr:n[vo]<0||n[vo]>59?vo:n[Ms]<0||n[Ms]>59?Ms:n[gl]<0||n[gl]>999?gl:-1,Ct(t)._overflowDayOfYear&&(e<Xr||e>Vo)&&(e=Vo),Ct(t)._overflowWeeks&&e===-1&&(e=XU),Ct(t)._overflowWeekday&&e===-1&&(e=QU),Ct(t).overflow=e),t}var Y4=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Z4=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,J4=/Z|[+-]\d\d(?::?\d\d)?/,ep=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],v_=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],X4=/^\/?Date\((-?\d+)/i,Q4=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ej={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yI(t){var e,n,r=t._i,i=Y4.exec(r)||Z4.exec(r),o,s,a,l,u=ep.length,d=v_.length;if(i){for(Ct(t).iso=!0,e=0,n=u;e<n;e++)if(ep[e][1].exec(i[1])){s=ep[e][0],o=ep[e][2]!==!1;break}if(s==null){t._isValid=!1;return}if(i[3]){for(e=0,n=d;e<n;e++)if(v_[e][1].exec(i[3])){a=(i[2]||" ")+v_[e][0];break}if(a==null){t._isValid=!1;return}}if(!o&&a!=null){t._isValid=!1;return}if(i[4])if(J4.exec(i[4]))l="Z";else{t._isValid=!1;return}t._f=s+(a||"")+(l||""),B0(t)}else t._isValid=!1}function tj(t,e,n,r,i,o){var s=[nj(t),uI.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function nj(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function rj(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ij(t,e,n){if(t){var r=mI.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return Ct(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function oj(t,e,n){if(t)return ej[t];if(e)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function wI(t){var e=Q4.exec(rj(t._i)),n;if(e){if(n=tj(e[4],e[3],e[2],e[5],e[6],e[7]),!ij(e[1],n,t))return;t._a=n,t._tzm=oj(e[8],e[9],e[10]),t._d=If.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Ct(t).rfc2822=!0}else t._isValid=!1}function sj(t){var e=X4.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(yI(t),t._isValid===!1)delete t._isValid;else return;if(wI(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:Xe.createFromInputFallback(t)}Xe.createFromInputFallback=ao("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Bc(t,e,n){return t??e??n}function aj(t){var e=new Date(Xe.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function j0(t){var e,n,r=[],i,o,s;if(!t._d){for(i=aj(t),t._w&&t._a[Vo]==null&&t._a[Ds]==null&&lj(t),t._dayOfYear!=null&&(s=Bc(t._a[Xr],i[Xr]),(t._dayOfYear>uf(s)||t._dayOfYear===0)&&(Ct(t)._overflowDayOfYear=!0),n=If(s,0,t._dayOfYear),t._a[Ds]=n.getUTCMonth(),t._a[Vo]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[xr]===24&&t._a[vo]===0&&t._a[Ms]===0&&t._a[gl]===0&&(t._nextDay=!0,t._a[xr]=0),t._d=(t._useUTC?If:p4).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xr]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==o&&(Ct(t).weekdayMismatch=!0)}}function lj(t){var e,n,r,i,o,s,a,l,u;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(o=1,s=4,n=Bc(e.GG,t._a[Xr],Pf(Rn(),1,4).year),r=Bc(e.W,1),i=Bc(e.E,1),(i<1||i>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,u=Pf(Rn(),o,s),n=Bc(e.gg,t._a[Xr],u.year),r=Bc(e.w,u.week),e.d!=null?(i=e.d,(i<0||i>6)&&(l=!0)):e.e!=null?(i=e.e+o,(e.e<0||e.e>6)&&(l=!0)):i=o),r<1||r>Ks(n,o,s)?Ct(t)._overflowWeeks=!0:l!=null?Ct(t)._overflowWeekday=!0:(a=gI(n,r,i,o,s),t._a[Xr]=a.year,t._dayOfYear=a.dayOfYear)}Xe.ISO_8601=function(){};Xe.RFC_2822=function(){};function B0(t){if(t._f===Xe.ISO_8601){yI(t);return}if(t._f===Xe.RFC_2822){wI(t);return}t._a=[],Ct(t).empty=!0;var e=""+t._i,n,r,i,o,s,a=e.length,l=0,u,d;for(i=rI(t._f,t._locale).match(I0)||[],d=i.length,n=0;n<d;n++)o=i[n],r=(e.match(YU(o,t))||[])[0],r&&(s=e.substr(0,e.indexOf(r)),s.length>0&&Ct(t).unusedInput.push(s),e=e.slice(e.indexOf(r)+r.length),l+=r.length),au[o]?(r?Ct(t).empty=!1:Ct(t).unusedTokens.push(o),JU(o,r,t)):t._strict&&!r&&Ct(t).unusedTokens.push(o);Ct(t).charsLeftOver=a-l,e.length>0&&Ct(t).unusedInput.push(e),t._a[xr]<=12&&Ct(t).bigHour===!0&&t._a[xr]>0&&(Ct(t).bigHour=void 0),Ct(t).parsedDateParts=t._a.slice(0),Ct(t).meridiem=t._meridiem,t._a[xr]=cj(t._locale,t._a[xr],t._meridiem),u=Ct(t).era,u!==null&&(t._a[Xr]=t._locale.erasConvertYear(u,t._a[Xr])),j0(t),U0(t)}function cj(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function uj(t){var e,n,r,i,o,s,a=!1,l=t._f.length;if(l===0){Ct(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,s=!1,e=A0({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],B0(e),C0(e)&&(s=!0),o+=Ct(e).charsLeftOver,o+=Ct(e).unusedTokens.length*10,Ct(e).score=o,a?o<r&&(r=o,n=e):(r==null||o<r||s)&&(r=o,n=e,s&&(a=!0));wa(t,n||e)}function dj(t){if(!t._d){var e=P0(t._i),n=e.day===void 0?e.date:e.day;t._a=eI([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),j0(t)}}function fj(t){var e=new ch(U0(xI(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xI(t){var e=t._i,n=t._f;return t._locale=t._locale||ia(t._l),e===null||n===void 0&&e===""?Um({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Po(e)?new ch(U0(e)):(lh(e)?t._d=e:Io(n)?uj(t):n?B0(t):hj(t),C0(t)||(t._d=null),t))}function hj(t){var e=t._i;yi(e)?t._d=new Date(Xe.now()):lh(e)?t._d=new Date(e.valueOf()):typeof e=="string"?sj(t):Io(e)?(t._a=eI(e.slice(0),function(n){return parseInt(n,10)}),j0(t)):El(e)?dj(t):Js(e)?t._d=new Date(e):Xe.createFromInputFallback(t)}function kI(t,e,n,r,i){var o={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(El(t)&&T0(t)||Io(t)&&t.length===0)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,fj(o)}function Rn(t,e,n,r){return kI(t,e,n,r,!1)}var pj=ao("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Rn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Um()}),gj=ao("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Rn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Um()});function SI(t,e){var n,r;if(e.length===1&&Io(e[0])&&(e=e[0]),!e.length)return Rn();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function mj(){var t=[].slice.call(arguments,0);return SI("isBefore",t)}function vj(){var t=[].slice.call(arguments,0);return SI("isAfter",t)}var _j=function(){return Date.now?Date.now():+new Date},Md=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bj(t){var e,n=!1,r,i=Md.length;for(e in t)if(en(t,e)&&!(sr.call(Md,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<i;++r)if(t[Md[r]]){if(n)return!1;parseFloat(t[Md[r]])!==Dt(t[Md[r]])&&(n=!0)}return!0}function yj(){return this._isValid}function wj(){return Ro(NaN)}function Vm(t){var e=P0(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=bj(e),this._milliseconds=+d+u*1e3+l*6e4+a*1e3*60*60,this._days=+s+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=ia(),this._bubble()}function Fp(t){return t instanceof Vm}function hy(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function xj(t,e,n){var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0,s;for(s=0;s<r;s++)Dt(t[s])!==Dt(e[s])&&o++;return o+i}function EI(t,e){ht(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+ls(~~(n/60),2)+e+ls(~~n%60,2)})}EI("Z",":");EI("ZZ","");at("Z",Gm);at("ZZ",Gm);mn(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=q0(Gm,t)});var kj=/([\+\-]|\d\d)/gi;function q0(t,e){var n=(e||"").match(t),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(kj)||["-",0,0],o=+(i[1]*60)+Dt(i[2]),o===0?0:i[0]==="+"?o:-o)}function H0(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Po(t)||lh(t)?t.valueOf():Rn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Xe.updateOffset(n,!1),n):Rn(t).local()}function py(t){return-Math.round(t._d.getTimezoneOffset())}Xe.updateOffset=function(){};function Sj(t,e,n){var r=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=q0(Gm,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=py(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?AI(this,Ro(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:py(this)}function Ej(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Tj(t){return this.utcOffset(0,t)}function Cj(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(py(this),"m")),this}function Aj(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=q0(KU,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function $j(t){return this.isValid()?(t=t?Rn(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Ij(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pj(){if(!yi(this._isDSTShifted))return this._isDSTShifted;var t={},e;return A0(t,this),t=xI(t),t._a?(e=t._isUTC?vs(t._a):Rn(t._a),this._isDSTShifted=this.isValid()&&xj(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Oj(){return this.isValid()?!this._isUTC:!1}function Nj(){return this.isValid()?this._isUTC:!1}function TI(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Lj=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rj=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ro(t,e){var n=t,r=null,i,o,s;return Fp(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:Js(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=Lj.exec(t))?(i=r[1]==="-"?-1:1,n={y:0,d:Dt(r[Vo])*i,h:Dt(r[xr])*i,m:Dt(r[vo])*i,s:Dt(r[Ms])*i,ms:Dt(hy(r[gl]*1e3))*i}):(r=Rj.exec(t))?(i=r[1]==="-"?-1:1,n={y:il(r[2],i),M:il(r[3],i),w:il(r[4],i),d:il(r[5],i),h:il(r[6],i),m:il(r[7],i),s:il(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=Fj(Rn(n.from),Rn(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new Vm(n),Fp(t)&&en(t,"_locale")&&(o._locale=t._locale),Fp(t)&&en(t,"_isValid")&&(o._isValid=t._isValid),o}Ro.fn=Vm.prototype;Ro.invalid=wj;function il(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function hS(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Fj(t,e){var n;return t.isValid()&&e.isValid()?(e=H0(e,t),t.isBefore(e)?n=hS(t,e):(n=hS(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function CI(t,e){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(nI(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Ro(n,r),AI(this,i,t),this}}function AI(t,e,n,r){var i=e._milliseconds,o=hy(e._days),s=hy(e._months);t.isValid()&&(r=r??!0,s&&fI(t,$f(t,"Month")+s*n),o&&cI(t,"Date",$f(t,"Date")+o*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&Xe.updateOffset(t,o||s))}var Dj=CI(1,"add"),Mj=CI(-1,"subtract");function $I(t){return typeof t=="string"||t instanceof String}function zj(t){return Po(t)||lh(t)||$I(t)||Js(t)||jj(t)||Uj(t)||t===null||t===void 0}function Uj(t){var e=El(t)&&!T0(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,s=r.length;for(i=0;i<s;i+=1)o=r[i],n=n||en(t,o);return e&&n}function jj(t){var e=Io(t),n=!1;return e&&(n=t.filter(function(r){return!Js(r)&&$I(t)}).length===0),e&&n}function Bj(t){var e=El(t)&&!T0(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||en(t,o);return e&&n}function qj(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hj(t,e){arguments.length===1&&(arguments[0]?zj(arguments[0])?(t=arguments[0],e=void 0):Bj(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Rn(),r=H0(n,this).startOf("day"),i=Xe.calendarFormat(this,r)||"sameElse",o=e&&(_s(e[i])?e[i].call(this,n):e[i]);return this.format(o||this.localeData().calendar(i,this,Rn(n)))}function Gj(){return new ch(this)}function Wj(t,e){var n=Po(t)?t:Rn(t);return this.isValid()&&n.isValid()?(e=lo(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function Kj(t,e){var n=Po(t)?t:Rn(t);return this.isValid()&&n.isValid()?(e=lo(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function Vj(t,e,n,r){var i=Po(t)?t:Rn(t),o=Po(e)?e:Rn(e);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function Yj(t,e){var n=Po(t)?t:Rn(t),r;return this.isValid()&&n.isValid()?(e=lo(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function Zj(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Jj(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Xj(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(r=H0(t,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=lo(e),e){case"year":o=Dp(this,r)/12;break;case"month":o=Dp(this,r);break;case"quarter":o=Dp(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:Ji(o)}function Dp(t,e){if(t.date()<e.date())return-Dp(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),i,o;return e-r<0?(i=t.clone().add(n-1,"months"),o=(e-r)/(r-i)):(i=t.clone().add(n+1,"months"),o=(e-r)/(i-r)),-(n+o)||0}Xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Qj(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eB(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?Rp(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_s(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rp(n,"Z")):Rp(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tB(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,i,o;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]',this.format(n+r+i+o)}function nB(t){t||(t=this.isUtc()?Xe.defaultFormatUtc:Xe.defaultFormat);var e=Rp(this,t);return this.localeData().postformat(e)}function rB(t,e){return this.isValid()&&(Po(t)&&t.isValid()||Rn(t).isValid())?Ro({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function iB(t){return this.from(Rn(),t)}function oB(t,e){return this.isValid()&&(Po(t)&&t.isValid()||Rn(t).isValid())?Ro({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sB(t){return this.to(Rn(),t)}function II(t){var e;return t===void 0?this._locale._abbr:(e=ia(t),e!=null&&(this._locale=e),this)}var PI=ao("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function OI(){return this._locale}var hg=1e3,lu=60*hg,pg=60*lu,NI=(365*400+97)*24*pg;function cu(t,e){return(t%e+e)%e}function LI(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-NI:new Date(t,e,n).valueOf()}function RI(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-NI:Date.UTC(t,e,n)}function aB(t){var e,n;if(t=lo(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?RI:LI,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=cu(e+(this._isUTC?0:this.utcOffset()*lu),pg);break;case"minute":e=this._d.valueOf(),e-=cu(e,lu);break;case"second":e=this._d.valueOf(),e-=cu(e,hg);break}return this._d.setTime(e),Xe.updateOffset(this,!0),this}function lB(t){var e,n;if(t=lo(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?RI:LI,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=pg-cu(e+(this._isUTC?0:this.utcOffset()*lu),pg)-1;break;case"minute":e=this._d.valueOf(),e+=lu-cu(e,lu)-1;break;case"second":e=this._d.valueOf(),e+=hg-cu(e,hg)-1;break}return this._d.setTime(e),Xe.updateOffset(this,!0),this}function cB(){return this._d.valueOf()-(this._offset||0)*6e4}function uB(){return Math.floor(this.valueOf()/1e3)}function dB(){return new Date(this.valueOf())}function fB(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function hB(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function pB(){return this.isValid()?this.toISOString():null}function gB(){return C0(this)}function mB(){return wa({},Ct(this))}function vB(){return Ct(this).overflow}function _B(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ht("N",0,0,"eraAbbr");ht("NN",0,0,"eraAbbr");ht("NNN",0,0,"eraAbbr");ht("NNNN",0,0,"eraName");ht("NNNNN",0,0,"eraNarrow");ht("y",["y",1],"yo","eraYear");ht("y",["yy",2],0,"eraYear");ht("y",["yyy",3],0,"eraYear");ht("y",["yyyy",4],0,"eraYear");at("N",G0);at("NN",G0);at("NNN",G0);at("NNNN",$B);at("NNNNN",IB);mn(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?Ct(n).era=i:Ct(n).invalidEra=t});at("y",od);at("yy",od);at("yyy",od);at("yyyy",od);at("yo",PB);mn(["y","yy","yyy","yyyy"],Xr);mn(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Xr]=n._locale.eraYearOrdinalParse(t,i):e[Xr]=parseInt(t,10)});function bB(t,e){var n,r,i,o=this._eras||ia("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=Xe(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=Xe(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function yB(t,e,n){var r,i,o=this.eras(),s,a,l;for(t=t.toUpperCase(),r=0,i=o.length;r<i;++r)if(s=o[r].name.toUpperCase(),a=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return o[r];break;case"NNNN":if(s===t)return o[r];break;case"NNNNN":if(l===t)return o[r];break}else if([s,a,l].indexOf(t)>=0)return o[r]}function wB(t,e){var n=t.since<=t.until?1:-1;return e===void 0?Xe(t.since).year():Xe(t.since).year()+(e-t.offset)*n}function xB(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function kB(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function SB(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function EB(){var t,e,n,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return(this.year()-Xe(i[t].since).year())*n+i[t].offset;return this.year()}function TB(t){return en(this,"_erasNameRegex")||W0.call(this),t?this._erasNameRegex:this._erasRegex}function CB(t){return en(this,"_erasAbbrRegex")||W0.call(this),t?this._erasAbbrRegex:this._erasRegex}function AB(t){return en(this,"_erasNarrowRegex")||W0.call(this),t?this._erasNarrowRegex:this._erasRegex}function G0(t,e){return e.erasAbbrRegex(t)}function $B(t,e){return e.erasNameRegex(t)}function IB(t,e){return e.erasNarrowRegex(t)}function PB(t,e){return e._eraYearOrdinalRegex||od}function W0(){var t=[],e=[],n=[],r=[],i,o,s,a,l,u=this.eras();for(i=0,o=u.length;i<o;++i)s=Ws(u[i].name),a=Ws(u[i].abbr),l=Ws(u[i].narrow),e.push(s),t.push(a),n.push(l),r.push(s),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ht(0,["gg",2],0,function(){return this.weekYear()%100});ht(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ym(t,e){ht(0,[t,t.length],0,e)}Ym("gggg","weekYear");Ym("ggggg","weekYear");Ym("GGGG","isoWeekYear");Ym("GGGGG","isoWeekYear");at("G",Hm);at("g",Hm);at("GG",Fn,Gi);at("gg",Fn,Gi);at("GGGG",N0,O0);at("gggg",N0,O0);at("GGGGG",qm,jm);at("ggggg",qm,jm);dh(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Dt(t)});dh(["gg","GG"],function(t,e,n,r){e[r]=Xe.parseTwoDigitYear(t)});function OB(t){return FI.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function NB(t){return FI.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function LB(){return Ks(this.year(),1,4)}function RB(){return Ks(this.isoWeekYear(),1,4)}function FB(){var t=this.localeData()._week;return Ks(this.year(),t.dow,t.doy)}function DB(){var t=this.localeData()._week;return Ks(this.weekYear(),t.dow,t.doy)}function FI(t,e,n,r,i){var o;return t==null?Pf(this,r,i).year:(o=Ks(t,r,i),e>o&&(e=o),MB.call(this,t,e,n,r,i))}function MB(t,e,n,r,i){var o=gI(t,e,n,r,i),s=If(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ht("Q",0,"Qo","quarter");at("Q",iI);mn("Q",function(t,e){e[Ds]=(Dt(t)-1)*3});function zB(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}ht("D",["DD",2],"Do","date");at("D",Fn,sd);at("DD",Fn,Gi);at("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});mn(["D","DD"],Vo);mn("Do",function(t,e){e[Vo]=Dt(t.match(Fn)[0])});var DI=ad("Date",!0);ht("DDD",["DDDD",3],"DDDo","dayOfYear");at("DDD",Bm);at("DDDD",oI);mn(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Dt(t)});function UB(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}ht("m",["mm",2],0,"minute");at("m",Fn,L0);at("mm",Fn,Gi);mn(["m","mm"],vo);var jB=ad("Minutes",!1);ht("s",["ss",2],0,"second");at("s",Fn,L0);at("ss",Fn,Gi);mn(["s","ss"],Ms);var BB=ad("Seconds",!1);ht("S",0,0,function(){return~~(this.millisecond()/100)});ht(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ht(0,["SSS",3],0,"millisecond");ht(0,["SSSS",4],0,function(){return this.millisecond()*10});ht(0,["SSSSS",5],0,function(){return this.millisecond()*100});ht(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ht(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ht(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ht(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});at("S",Bm,iI);at("SS",Bm,Gi);at("SSS",Bm,oI);var xa,MI;for(xa="SSSS";xa.length<=9;xa+="S")at(xa,od);function qB(t,e){e[gl]=Dt(("0."+t)*1e3)}for(xa="S";xa.length<=9;xa+="S")mn(xa,qB);MI=ad("Milliseconds",!1);ht("z",0,0,"zoneAbbr");ht("zz",0,0,"zoneName");function HB(){return this._isUTC?"UTC":""}function GB(){return this._isUTC?"Coordinated Universal Time":""}var je=ch.prototype;je.add=Dj;je.calendar=Hj;je.clone=Gj;je.diff=Xj;je.endOf=lB;je.format=nB;je.from=rB;je.fromNow=iB;je.to=oB;je.toNow=sB;je.get=t4;je.invalidAt=vB;je.isAfter=Wj;je.isBefore=Kj;je.isBetween=Vj;je.isSame=Yj;je.isSameOrAfter=Zj;je.isSameOrBefore=Jj;je.isValid=gB;je.lang=PI;je.locale=II;je.localeData=OI;je.max=gj;je.min=pj;je.parsingFlags=mB;je.set=n4;je.startOf=aB;je.subtract=Mj;je.toArray=fB;je.toObject=hB;je.toDate=dB;je.toISOString=eB;je.inspect=tB;typeof Symbol<"u"&&Symbol.for!=null&&(je[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});je.toJSON=pB;je.toString=Qj;je.unix=uB;je.valueOf=cB;je.creationData=_B;je.eraName=xB;je.eraNarrow=kB;je.eraAbbr=SB;je.eraYear=EB;je.year=lI;je.isLeapYear=e4;je.weekYear=OB;je.isoWeekYear=NB;je.quarter=je.quarters=zB;je.month=hI;je.daysInMonth=d4;je.week=je.weeks=b4;je.isoWeek=je.isoWeeks=y4;je.weeksInYear=FB;je.weeksInWeekYear=DB;je.isoWeeksInYear=LB;je.isoWeeksInISOWeekYear=RB;je.date=DI;je.day=je.days=N4;je.weekday=L4;je.isoWeekday=R4;je.dayOfYear=UB;je.hour=je.hours=B4;je.minute=je.minutes=jB;je.second=je.seconds=BB;je.millisecond=je.milliseconds=MI;je.utcOffset=Sj;je.utc=Tj;je.local=Cj;je.parseZone=Aj;je.hasAlignedHourOffset=$j;je.isDST=Ij;je.isLocal=Oj;je.isUtcOffset=Nj;je.isUtc=TI;je.isUTC=TI;je.zoneAbbr=HB;je.zoneName=GB;je.dates=ao("dates accessor is deprecated. Use date instead.",DI);je.months=ao("months accessor is deprecated. Use month instead",hI);je.years=ao("years accessor is deprecated. Use year instead",lI);je.zone=ao("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ej);je.isDSTShifted=ao("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pj);function WB(t){return Rn(t*1e3)}function KB(){return Rn.apply(null,arguments).parseZone()}function zI(t){return t}var rn=$0.prototype;rn.calendar=OU;rn.longDateFormat=FU;rn.invalidDate=MU;rn.ordinal=jU;rn.preparse=zI;rn.postformat=zI;rn.relativeTime=qU;rn.pastFuture=HU;rn.set=IU;rn.eras=bB;rn.erasParse=yB;rn.erasConvertYear=wB;rn.erasAbbrRegex=CB;rn.erasNameRegex=TB;rn.erasNarrowRegex=AB;rn.months=a4;rn.monthsShort=l4;rn.monthsParse=u4;rn.monthsRegex=h4;rn.monthsShortRegex=f4;rn.week=g4;rn.firstDayOfYear=_4;rn.firstDayOfWeek=v4;rn.weekdays=A4;rn.weekdaysMin=I4;rn.weekdaysShort=$4;rn.weekdaysParse=O4;rn.weekdaysRegex=F4;rn.weekdaysShortRegex=D4;rn.weekdaysMinRegex=M4;rn.isPM=U4;rn.meridiem=q4;function gg(t,e,n,r){var i=ia(),o=vs().set(r,e);return i[n](o,t)}function UI(t,e,n){if(Js(t)&&(e=t,t=void 0),t=t||"",e!=null)return gg(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=gg(t,r,n,"month");return i}function K0(t,e,n,r){typeof t=="boolean"?(Js(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,Js(e)&&(n=e,e=void 0),e=e||"");var i=ia(),o=t?i._week.dow:0,s,a=[];if(n!=null)return gg(e,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=gg(e,(s+o)%7,r,"day");return a}function VB(t,e){return UI(t,e,"months")}function YB(t,e){return UI(t,e,"monthsShort")}function ZB(t,e,n){return K0(t,e,n,"weekdays")}function JB(t,e,n){return K0(t,e,n,"weekdaysShort")}function XB(t,e,n){return K0(t,e,n,"weekdaysMin")}Pa("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Dt(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});Xe.lang=ao("moment.lang is deprecated. Use moment.locale instead.",Pa);Xe.langData=ao("moment.langData is deprecated. Use moment.localeData instead.",ia);var Ts=Math.abs;function QB(){var t=this._data;return this._milliseconds=Ts(this._milliseconds),this._days=Ts(this._days),this._months=Ts(this._months),t.milliseconds=Ts(t.milliseconds),t.seconds=Ts(t.seconds),t.minutes=Ts(t.minutes),t.hours=Ts(t.hours),t.months=Ts(t.months),t.years=Ts(t.years),this}function jI(t,e,n,r){var i=Ro(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function e6(t,e){return jI(this,t,e,1)}function t6(t,e){return jI(this,t,e,-1)}function pS(t){return t<0?Math.floor(t):Math.ceil(t)}function n6(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,i,o,s,a,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=pS(gy(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,i=Ji(t/1e3),r.seconds=i%60,o=Ji(i/60),r.minutes=o%60,s=Ji(o/60),r.hours=s%24,e+=Ji(s/24),l=Ji(BI(e)),n+=l,e-=pS(gy(l)),a=Ji(n/12),n%=12,r.days=e,r.months=n,r.years=a,this}function BI(t){return t*4800/146097}function gy(t){return t*146097/4800}function r6(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=lo(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+BI(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(gy(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function oa(t){return function(){return this.as(t)}}var qI=oa("ms"),i6=oa("s"),o6=oa("m"),s6=oa("h"),a6=oa("d"),l6=oa("w"),c6=oa("M"),u6=oa("Q"),d6=oa("y"),f6=qI;function h6(){return Ro(this)}function p6(t){return t=lo(t),this.isValid()?this[t+"s"]():NaN}function hc(t){return function(){return this.isValid()?this._data[t]:NaN}}var g6=hc("milliseconds"),m6=hc("seconds"),v6=hc("minutes"),_6=hc("hours"),b6=hc("days"),y6=hc("months"),w6=hc("years");function x6(){return Ji(this.days()/7)}var Ps=Math.round,Qc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function k6(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function S6(t,e,n,r){var i=Ro(t).abs(),o=Ps(i.as("s")),s=Ps(i.as("m")),a=Ps(i.as("h")),l=Ps(i.as("d")),u=Ps(i.as("M")),d=Ps(i.as("w")),f=Ps(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=r,k6.apply(null,h)}function E6(t){return t===void 0?Ps:typeof t=="function"?(Ps=t,!0):!1}function T6(t,e){return Qc[t]===void 0?!1:e===void 0?Qc[t]:(Qc[t]=e,t==="s"&&(Qc.ss=e-1),!0)}function C6(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Qc,i,o;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},Qc,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),o=S6(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var __=Math.abs;function Rc(t){return(t>0)-(t<0)||+t}function Zm(){if(!this.isValid())return this.localeData().invalidDate();var t=__(this._milliseconds)/1e3,e=__(this._days),n=__(this._months),r,i,o,s,a=this.asSeconds(),l,u,d,f;return a?(r=Ji(t/60),i=Ji(r/60),t%=60,r%=60,o=Ji(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=Rc(this._months)!==Rc(a)?"-":"",d=Rc(this._days)!==Rc(a)?"-":"",f=Rc(this._milliseconds)!==Rc(a)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(e?d+e+"D":"")+(i||r||t?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(t?f+s+"S":"")):"P0D"}var Wt=Vm.prototype;Wt.isValid=yj;Wt.abs=QB;Wt.add=e6;Wt.subtract=t6;Wt.as=r6;Wt.asMilliseconds=qI;Wt.asSeconds=i6;Wt.asMinutes=o6;Wt.asHours=s6;Wt.asDays=a6;Wt.asWeeks=l6;Wt.asMonths=c6;Wt.asQuarters=u6;Wt.asYears=d6;Wt.valueOf=f6;Wt._bubble=n6;Wt.clone=h6;Wt.get=p6;Wt.milliseconds=g6;Wt.seconds=m6;Wt.minutes=v6;Wt.hours=_6;Wt.days=b6;Wt.weeks=x6;Wt.months=y6;Wt.years=w6;Wt.humanize=C6;Wt.toISOString=Zm;Wt.toString=Zm;Wt.toJSON=Zm;Wt.locale=II;Wt.localeData=OI;Wt.toIsoString=ao("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zm);Wt.lang=PI;ht("X",0,0,"unix");ht("x",0,0,"valueOf");at("x",Hm);at("X",VU);mn("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});mn("x",function(t,e,n){n._d=new Date(Dt(t))});Xe.version="2.30.1";AU(Rn);Xe.fn=je;Xe.min=mj;Xe.max=vj;Xe.now=_j;Xe.utc=vs;Xe.unix=WB;Xe.months=VB;Xe.isDate=lh;Xe.locale=Pa;Xe.invalid=Um;Xe.duration=Ro;Xe.isMoment=Po;Xe.weekdays=ZB;Xe.parseZone=KB;Xe.localeData=ia;Xe.isDuration=Fp;Xe.monthsShort=YB;Xe.weekdaysMin=XB;Xe.defineLocale=z0;Xe.updateLocale=K4;Xe.locales=V4;Xe.weekdaysShort=JB;Xe.normalizeUnits=lo;Xe.relativeTimeRounding=E6;Xe.relativeTimeThreshold=T6;Xe.calendarFormat=qj;Xe.prototype=je;Xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const fh=t=>{let e;if(t!=="_default")try{[e]=Intl.getCanonicalLocales(t)}catch{}return e},io=t=>{const e=fh(t);if(!e)return t;const n=new Intl.DisplayNames(oe(nn),{type:"language"});try{return n.of(e)??t}catch(r){return console.error(r),t}},Iu=(t,e={})=>new Intl.ListFormat(fh(t),{style:"narrow",type:"conjunction",...e}),V0=({_i18n:t,locale:e,path:n})=>{const{defaultLocale:r,omitDefaultLocaleFromFileName:i}=t;return i&&e===r&&(n=n.replace(/\.{{locale}}\.(\w+)$/,".$1")),n.replaceAll("{{locale}}",e)},A6=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,$6=/^\d{4}-[01]\d-[0-3]\d$/,I6=/T00:00(?::00)?(?:\.000)?Z$/,my={year:"numeric",month:"short",day:"numeric"},vy={hour:"numeric",minute:"numeric",hour12:!0},P6={...my,...vy},Ka=t=>{const{format:e,date_format:n=void 0,time_format:r=void 0,picker_utc:i=!1}=t;return{format:e||[typeof n=="string"?n:"",typeof r=="string"?r:""].join(" ").trim()||void 0,dateOnly:r===!1,timeOnly:n===!1,utc:i}},Pu=(t,e)=>{const{format:n,timeOnly:r,utc:i}=Ka(e);if(t)try{return n?(i?Xe.utc:Xe)(t,n).toDate():r?new Date(`${new Date().toJSON().split("T")[0]}T${t}`):new Date(t)}catch(o){console.error(o);return}},HI=t=>{const{dateOnly:e,timeOnly:n,utc:r}=Ka(t),{year:i,month:o,day:s,hour:a,minute:l}=ql({timeZone:r?"UTC":void 0}),u=`${i}-${o}-${s}`,d=`${a}:${l}`;return e?u:n?d:r?`${u}T${d}:00.000Z`:`${u}T${d}`},GI=(t,e,n)=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Ka(n),a=i?"YYYY-MM-DD":o?"HH:mm":"YYYY-MM-DDTHH:mm",l=`:00${e?.endsWith(".000")?".000":""}`;if(t==="")return"";if(t)try{if(r){const u=(s?Xe.utc:Xe)(t,a).format(r);return r.includes("Z")&&u.endsWith("+00:00")?u.replace("+00:00","Z"):u}return i?t:s?`${t}:00.000Z`:`${t}${l}`}catch(u){console.error(u);return}},O6=(t,e)=>{const{dateOnly:n,timeOnly:r,utc:i}=Ka(e);if(!t)return"";const o=n?t?.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?t?.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(o)return o;try{const s=t?Pu(t,e):new Date;if(t&&!s||t&&s&&Number.isNaN(s.getTime()))return"";const{year:a,month:l,day:u,hour:d,minute:f}=ql({date:s,timeZone:i?"UTC":void 0}),h=`${a}-${l}-${u}`,p=`${d}:${f}`;return n?h:r?p:`${h}T${p}`}catch(s){return console.error(s),""}},WI=({locale:t,fieldConfig:e,currentValue:n})=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Ka(e);if(typeof n!="string"||!n.trim())return"";if(r)try{return(s?Xe.utc:Xe)(n,r).format(r)}catch{}const a=Pu(n,e),l=fh(t);return!a||Number.isNaN(a.getTime())?"":o?a.toLocaleTimeString(l,vy):i?a.toLocaleDateString(l,{...my,timeZone:s||$6.test(n)||I6.test(n)?"UTC":void 0}):a.toLocaleString(l,{...my,...vy,timeZone:s?"UTC":void 0,timeZoneName:s?void 0:"short"})},Y0=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,KI=/^default\('(?<defaultValue>.+?)'\)$/,VI=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,N6=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,L6=t=>String(t).toUpperCase(),R6=t=>String(t).toLowerCase(),F6=(t,{format:e,timeZone:n},r)=>{const i=String(t),{dateOnly:o,utc:s}=Ka(r),l=(n==="utc"||s||o&&!!i.match(/^\d{4}-[01]\d-[0-3]\d$/)||o&&!!i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?Xe.utc:Xe)(i);return l.isValid()?l.format(e):""},D6=(t,{defaultValue:e})=>t?String(t):e,M6=(t,{truthyValue:e,falsyValue:n})=>t?e:n,z6=(t,{max:e,ellipsis:n="…"})=>$$(String(t),Number(e),{ellipsis:n}),U6=({fieldConfig:t,value:e,transformation:n})=>{if(n==="upper")return L6(e);if(n==="lower")return R6(e);const r=n.match(Y0);if(r?.groups)return F6(e,r.groups,t??{});const i=n.match(KI);if(i?.groups)return D6(e,i.groups);const o=n.match(VI);if(o?.groups)return M6(e,o.groups);const s=n.match(N6);return s?.groups?z6(e,s.groups):String(e)},Z0=({fieldConfig:t,value:e,transformations:n})=>(n.forEach(r=>{e=U6({fieldConfig:t,value:e,transformation:r})}),e),Mt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),YI={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(YI);const ZI={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(ZI);var Yi=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},qc,Qd,al;class j6{constructor(...e){qc.set(this,new Map),Qd.set(this,new Map),al.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Yi(this,al,"f").has(r)||Yi(this,al,"f").set(r,new Set);const o=Yi(this,al,"f").get(r);let s=!0;for(let a of i){const l=a.startsWith("*");if(a=l?a.slice(1):a,o?.add(a),s&&Yi(this,Qd,"f").set(r,a),s=!1,l)continue;const u=Yi(this,qc,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Yi(this,qc,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Yi(this,qc,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Yi(this,Qd,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Yi(this,al,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Yi(this,al,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Yi(this,qc,"f"),extensions:Yi(this,Qd,"f")}}}qc=new WeakMap,Qd=new WeakMap,al=new WeakMap;const sa=new j6(ZI,YI)._freeze();var b_,gS;function B6(){if(gS)return b_;gS=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return b_=function(r,i,o){if(typeof i!="string")throw new Error("Input must be string");for(var s=i.length,a=0,l,u,d=0;d<s;d+=1){if(l=i.charCodeAt(d),u=i[d],t(l)&&e(i.charCodeAt(d+1))&&(d+=1,u+=i[d]),a+=r(u),a===o)return i.slice(0,d+1);if(a>o)return i.slice(0,d-u.length+1)}return i},b_}var y_,mS;function q6(){if(mS)return y_;mS=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return y_=function(r){if(typeof r!="string")throw new Error("Input must be string");for(var i=r.length,o=0,s=null,a=null,l=0;l<i;l++)s=r.charCodeAt(l),e(s)?a!=null&&t(a)?o+=1:o+=3:s<=127?o+=1:s>=128&&s<=2047?o+=2:s>=2048&&s<=65535&&(o+=3),a=s;return o},y_}var w_,vS;function H6(){if(vS)return w_;vS=1;var t=B6(),e=q6();return w_=t.bind(null,e),w_}var x_,_S;function G6(){if(_S)return x_;_S=1;var t=H6(),e=/[\/\?<>\\:\*\|"]/g,n=/[\x00-\x1f\x80-\x9f]/g,r=/^\.+$/,i=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,o=/[\. ]+$/;function s(a,l){if(typeof a!="string")throw new Error("Input must be string");var u=a.replace(e,l).replace(n,l).replace(r,l).replace(i,l).replace(o,l);return t(u,255)}return x_=function(a,l){var u=l&&l.replacement||"",d=s(a,u);return u===""?d:s(d,"")},x_}var W6=G6();const K6=Ju(W6),JI=(t,e)=>new RegExp(`^${t.split("/").map(e).join("\\/")}\\b`),XI=t=>{const e=t.startsWith("@");return e&&(t=t.slice(1)),t=t.split("/").map(n=>encodeURIComponent(n).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)).join("/"),e?`@${t}`:t},V6=t=>decodeURIComponent(t),Jm=t=>{const e=new Intl.NumberFormat(oe(nn),{maximumFractionDigits:1}),n=1e3,r=n*1e3,i=r*1e3,o=i*1e3;return t<n?oe(ue)("file_size_units.b",{values:{size:e.format(t)}}):t<r?oe(ue)("file_size_units.kb",{values:{size:e.format(t/n)}}):t<i?oe(ue)("file_size_units.mb",{values:{size:e.format(t/r)}}):t<o?oe(ue)("file_size_units.gb",{values:{size:e.format(t/i)}}):oe(ue)("file_size_units.tb",{values:{size:e.format(t/o)}})},QI=(t,e)=>{if(!e.length)return t;const{filename:n,extension:r}=yn(t),i=new RegExp(`^${Qt(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:""}$`),o=e.sort((a,l)=>ji(a.split(".")[0],l.split(".")[0])).findLast(a=>i.test(a));if(!o)return t;const s=Number(o.match(i)?.groups?.num??0)+1;return`${n}-${s}${r?`.${r}`:""}`},eP=(t,{slugificationEnabled:e=!1,assetNamesInSameFolder:n=[]}={})=>{let r=K6(t.normalize());if(e){const{filename:i,extension:o}=yn(r);r=`${X2(i)}${o?`.${o}`:""}`}return QI(r,n)},Ou=t=>t.filter(Boolean).join("/"),_y=t=>{const e=t.split("/");let n=!1;return e.forEach((r,i)=>{if(r==="."||r===".."){if(n&&(e[i]=null,r==="..")){const o=e.findLastIndex((s,a)=>!!s&&a<i);o>-1&&(e[o]=null)}}else n=!0}),Ou(e)},J0=t=>typeof t=="string"?new Blob([t],{type:"text/plain"}):t,Hl=async t=>{const n=await J0(t).arrayBuffer();return jl(new Blob([`blob ${n.byteLength}\0`,n]))};let tP=class{constructor(e){if(Y6(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function Y6(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function bS(t,e,n){try{return new DataView(t,e,n)}catch{return new tP(t,e,n)}}function Et(t,e,n){const r=[];for(let i=0;i<n&&e+i<t.byteLength;i++)r.push(t.getUint8(e+i));return Gl(r)}function Hc(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const i=t.getUint8(e+r);if(i===0)break;n.push(i),r++}return Gl(n)}function Z6(t,e,n){const r=[];for(let i=0;i<n&&e+i<t.byteLength;i+=2)r.push(t.getUint16(e+i));return r[r.length-1]===0&&r.pop(),Gl(r)}function nP(t,e){const n=t.getUint8(e),r=Et(t,e+1,n);return[n,r]}function Gl(t){return t.map(e=>String.fromCharCode(e)).join("")}function At(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function rP(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function iP(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function J6(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function X6(t,e,n){return oP(n,e-t.length)+t}function Q6(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function oP(t,e){return new Array(e+1).join(t)}const mg=void 0,sP=0;function aP(t,e,n,r="string"){if(e===sP&&typeof DecompressionStream=="function"){const i=new DecompressionStream("deflate"),o=new Blob([t]).stream().pipeThrough(i);return r==="dataview"?new Response(o).arrayBuffer().then(s=>new DataView(s)):new Response(o).arrayBuffer().then(s=>new TextDecoder(n).decode(s))}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const yS={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0,USE_MAKER_NOTES:!0};function pr(t){return t.map(e=>String.fromCharCode(e)).join("")}function by(t){if(t.length>=8){const e=pr(t.slice(0,8));if(e==="ASCII\0\0\0")return pr(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function vg(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const yy=18761,wy=19789,cs={BIG_ENDIAN:wy,LITTLE_ENDIAN:yy,getByteOrder:e8};function e8(t,e){if(t.getUint16(e)===yy)return yy;if(t.getUint16(e)===wy)return wy;throw new Error("Illegal byte order value. Faulty image.")}const wS={isTiffFile:t8,findTiffOffsets:r8};function t8(t){return!!t&&t.byteLength>=4&&n8(t)}function n8(t){const r=t.getUint16(0)===cs.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function r8(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const xS={isJpegFile:b8,findJpegOffsets:y8},i8=2,o8=65496,kS=2,oo=4,Kr=2,s8=2,a8=10,l8=18,SS=33,ES=79,TS=18,c8=8,xy="ICC_PROFILE\0",lP=oo+xy.length,u8=lP+1,CS="MPF\0",cP=65472,uP=65474,d8=65476,f8=65499,h8=65501,p8=65498,dP=65504,X0=65505,fP=65506,g8=65517,m8=65519,v8=65534,_8=65535,AS="JFIF",$S="Exif",IS="http://ns.adobe.com/xap/1.0/\0",PS="http://ns.adobe.com/xmp/extension/\0",OS="Photoshop 3.0";function b8(t){return!!t&&t.byteLength>=i8&&t.getUint16(0)===o8}function y8(t){let e=kS,n,r,i,o,s,a,l,u,d;for(;e+oo+5<=t.byteLength;){if(w8(t,e))n=t.getUint16(e+Kr),r=e+Kr;else if(x8(t,e))n=t.getUint16(e+Kr),i=e+Kr;else if(E8(t,e))n=t.getUint16(e+Kr),o=e+s8;else if(T8(t,e))n=t.getUint16(e+Kr),s=e+a8;else if(C8(t,e))l||(l=[]),n=t.getUint16(e+Kr),l.push(P8(e,n));else if($8(t,e))l||(l=[]),n=t.getUint16(e+Kr),l.push(O8(e,n));else if(N8(t,e))n=t.getUint16(e+Kr),a=e+l8;else if(k8(t,e)){n=t.getUint16(e+Kr);const f=e+TS,h=n-(TS-Kr),p=t.getUint8(e+lP),g=t.getUint8(e+u8);u||(u=[]),u.push({offset:f,length:h,chunkNumber:p,chunksTotal:g})}else if(S8(t,e))n=t.getUint16(e+Kr),d=e+c8;else if(L8(t,e))n=t.getUint16(e+Kr);else if(R8(t,e)){e++;continue}else break;e+=Kr+n}return{hasAppMarkers:e>kS,fileDataOffset:r||i,jfifDataOffset:o,tiffHeaderOffset:s,iptcDataOffset:a,xmpChunks:l,iccChunks:u,mpfDataOffset:d}}function w8(t,e){return t.getUint16(e)===cP}function x8(t,e){return t.getUint16(e)===uP}function k8(t,e){const n=xy.length;return t.getUint16(e)===fP&&Et(t,e+oo,n)===xy}function S8(t,e){const n=CS.length;return t.getUint16(e)===fP&&Et(t,e+oo,n)===CS}function E8(t,e){const n=AS.length;return t.getUint16(e)===dP&&Et(t,e+oo,n)===AS&&t.getUint8(e+oo+n)===0}function T8(t,e){const n=$S.length;return t.getUint16(e)===X0&&Et(t,e+oo,n)===$S&&t.getUint8(e+oo+n)===0}function C8(t,e){return t.getUint16(e)===X0&&A8(t,e)}function A8(t,e){const n=IS.length;return Et(t,e+oo,n)===IS}function $8(t,e){return t.getUint16(e)===X0&&I8(t,e)}function I8(t,e){const n=PS.length;return Et(t,e+oo,n)===PS}function P8(t,e){return{dataOffset:t+SS,length:e-(SS-Kr)}}function O8(t,e){return{dataOffset:t+ES,length:e-(ES-Kr)}}function N8(t,e){const n=OS.length;return t.getUint16(e)===g8&&Et(t,e+oo,n)===OS&&t.getUint8(e+oo+n)===0}function L8(t,e){const n=t.getUint16(e);return n>=dP&&n<=m8||n===v8||n===cP||n===uP||n===d8||n===f8||n===h8||n===p8}function R8(t,e){return t.getUint16(e)===_8}const NS={isPngFile:M8,findPngOffsets:z8},ky=`‰PNG\r
149
149
  
150
- `,_g=4,ko=4,Gc=0,Va=_g,Lr=_g+ko,Sy="XML:com.adobe.xmp\0",Q0="tEXt",Wl="iTXt",Xm="zTXt",hP="pHYs",pP="tIME",F8="eXIf",D8="iCCP";function M8(t){return!!t&&Et(t,0,ky.length)===ky}function z8(t,e){const r={hasAppMarkers:!1};let i=ky.length;for(;i+_g+ko<=t.byteLength;){if(U8(t,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+Lr;else if(j8(t,i)){const o=W8(t,i);o!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:o,length:t.getUint32(i+Gc)-(o-(i+Lr))}])}else if(B8(t,i,e)){r.hasAppMarkers=!0;const o=Et(t,i+Va,ko);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(i+Gc),type:o,offset:i+Lr})}else if(q8(t,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+Lr;else if(e&&H8(t,i)){r.hasAppMarkers=!0;const o=t.getUint32(i+Gc),s=i+Lr,{profileName:a,compressionMethod:l,compressedProfileOffset:u}=K8(t,s);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:o-(u-s),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:l})}else G8(t,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+Gc));i+=t.getUint32(i+Gc)+_g+ko+4}return r}function U8(t,e){return Et(t,e+Va,ko)==="IHDR"}function j8(t,e){return Et(t,e+Va,ko)===Wl&&Et(t,e+Lr,Sy.length)===Sy}function B8(t,e,n){const r=Et(t,e+Va,ko);return r===Q0||r===Wl||r===Xm&&n}function q8(t,e){return Et(t,e+Va,ko)===F8}function H8(t,e){return Et(t,e+Va,ko)===D8}function G8(t,e){const n=[hP,pP],r=Et(t,e+Va,ko);return n.includes(r)}function W8(t,e){e+=Lr+Sy.length+1+1;let i=0;for(;i<2&&e<t.byteLength;)t.getUint8(e)===0&&i++,e++;if(!(i<2))return e}function K8(t,e){const i=Hc(t,e);e+=i.length+1;const o=t.getUint8(e);return e+=1,{profileName:i,compressionMethod:o,compressedProfileOffset:e}}function V8(t,e){return t.getUint32(e+4)}function Y8(t,e,n,r){const{offsets:o,sizes:s}=Z8(e,n+3),a=t.getUint8(o.offsetSize)>>4;s.item.extent.extentOffset=a;const l=t.getUint8(o.lengthSize)&15;s.item.extent.extentLength=l;const u=t.getUint8(o.baseOffsetSize)>>4;s.item.baseOffset=u;const d=J8(t,o.indexSize,e);s.item.extent.extentIndex=d!==void 0?d:0;const f=X8(t,o.itemCount,e);return{type:"iloc",items:Q8(t,e,o,s,a,l,d,f),length:r}}function Z8(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function J8(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function X8(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function Q8(t,e,n,r,i,o,s,a){if(a===void 0)return[];const l=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=e5(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Mp(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const p={};p.extentIndex=t5(t,e,u,s),u+=r.item.extent.extentIndex,p.extentOffset=Mp(t,u,i),u+=r.item.extent.extentOffset,p.extentLength=Mp(t,u,o),u+=r.item.extent.extentLength,f.extents.push(p)}l.push(f)}return l}function e5(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function t5(t,e,n,r){if((e===1||e===2)&&r>0)return Mp(t,n,r)}function Mp(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),V8(t,e)):0}const n5=1718909296,r5=1768977008,i5=1835365473,o5=1768714083,s5=1768517222,a5=1768842853,l5=1768973167,c5=1668246642,gP=1165519206,ex=1835625829,u5=1970432288;function Qm(t,e){const{length:o,contentOffset:s}=d5(t,e);if(o<8)return;const a=t.getUint32(e+4);if(a===n5)return x5(t,s,o);if(a===r5)return k5(t,e,s,o);if(a===l5)return S5(t,e,s,o);if(a===c5)return E5(t,s,o);const l=t.getUint8(s);return a===i5?C5(t,e,s+1,o):a===o5?Y8(t,l,s+1,o):a===s5?A5(t,e,l,s+1,o):a===a5?I5(t,e,l,s+1,o):{type:void 0,length:o}}function d5(t,e){const s=t.getUint32(e);return f5(s)?{length:t.byteLength-e,contentOffset:e+4+4}:h5(s)&&p5(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:s,contentOffset:e+4+4}}function f5(t){return t===0}function h5(t){return t===1}function p5(t,e){return t.getUint32(e+8)===0}function mP(t){{const e={},n=g5(t);return n?(e.tiffHeaderOffset=m5(t,n),e.xmpChunks=b5(n),e.iccChunks=w5(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function g5(t){let r=0;for(;r+4+4<=t.byteLength;){const i=Qm(t,r);if(i===void 0)break;if(i.type==="meta")return i;r+=i.length}}function m5(t,e){try{const n=v5(e).itemId,r=Ey(e,n),i=r.baseOffset+r.extents[0].extentOffset;return _5(t,i)}catch{return}}function v5(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===gP)}function Ey(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function _5(t,e){return e+4+t.getUint32(e)}function b5(t){try{const e=y5(t).itemId,n=Ey(t,e),r=Ey(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function y5(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===ex&&e.contentType==="application/rdf+xml")}function w5(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function x5(t,e,n){return{type:"ftyp",majorBrand:Et(t,e,4),length:n}}function k5(t,e,n,r){return{type:"iprp",subBoxes:ev(t,n,r-(n-e)),length:r}}function S5(t,e,n,r){return{type:"ipco",properties:ev(t,n,r-(n-e)),length:r}}function E5(t,e,n){return{type:"colr",icc:T5(t,e),length:n}}function T5(t,e){const r=Et(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function C5(t,e,n,r){return{type:"meta",subBoxes:ev(t,n+3,r-(n+3-e)),length:r}}function ev(t,e,n){const r=[gP,ex],i=[];let o=e;for(;o<e+n;){const s=Qm(t,o);if(s===void 0)break;s.type!==void 0&&(s.itemType===void 0||r.indexOf(s.itemType)!==-1)&&i.push(s),o+=s.length}return i}function A5(t,e,n,r,i){const{offsets:o}=$5(n,r);return{type:"iinf",itemInfos:ev(t,o.itemInfos,i-(o.itemInfos-e)),length:i}}function $5(t,e){const r={entryCount:e+3},i={};return t===0?i.entryCount=2:i.entryCount=4,r.itemInfos=r.entryCount+i.entryCount,{offsets:r}}function I5(t,e,n,r,i){r+=3;const s={type:"infe",length:i};return(n===0||n===1)&&(s.itemId=t.getUint16(r),r+=2,s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemName=Hc(t,r),r+=s.itemName.length+1),n>=2&&(n===2?(s.itemId=t.getUint16(r),r+=2):n===3&&(s.itemId=t.getUint32(r),r+=4),s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemType=t.getUint32(r),r+=4,s.itemName=Hc(t,r),r+=s.itemName.length+1,s.itemType===ex?(s.contentType=Hc(t,r),r+=s.contentType.length+1,e+i>r&&(s.contentEncoding=Hc(t,r),r+=s.contentEncoding.length+1)):s.itemType===u5&&(s.itemUri=Hc(t,r),r+=s.itemUri.length+1)),s}const LS={isHeicFile:P5,findHeicOffsets:O5};function P5(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Qm(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function O5(t){return mP(t)}const RS={isAvifFile:N5,findAvifOffsets:L5};function N5(t){if(!t)return!1;try{const e=Qm(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function L5(t){return mP(t)}const FS={isWebpFile:R5,findOffsets:F5};function R5(t){const n="RIFF",i="WEBP";return!!t&&Et(t,0,n.length)===n&&Et(t,8,i.length)===i}function F5(t){const r="Exif\0\0";let o=12,s=!1,a,l,u,d;for(;o+8<t.byteLength;){const f=Et(t,o,4),h=t.getUint32(o+4,!0);f==="EXIF"?(s=!0,Et(t,o+8,r.length)===r?a=o+8+r.length:a=o+8):f==="XMP "?(s=!0,l=[{dataOffset:o+8,length:h}]):f==="ICCP"?(s=!0,u=[{offset:o+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(s=!0,d=o+8),o+=8+(h%2===0?h:h+1)}return{hasAppMarkers:s,tiffHeaderOffset:a,xmpChunks:l,iccChunks:u,vp8xChunkOffset:d}}const DS={isGifFile:z5,findOffsets:U5},D5=6,M5=["GIF87a","GIF89a"];function z5(t){return!!t&&M5.includes(Et(t,0,D5))}function U5(){return{gifHeaderOffset:0}}const MS={isXMLFile:j5,findOffsets:B5},vP=0,zS="<?xpacket begin";function j5(t){return!!t&&Et(t,vP,zS.length)===zS}function B5(t){const e=[];return e.push({dataOffset:vP,length:t.byteLength}),{xmpChunks:e}}const q5={parseAppMarkers:H5};function H5(t,e){if(wS.isTiffFile(t))return ua(wS.findTiffOffsets(),"tiff","TIFF");if(xS.isJpegFile(t))return ua(xS.findJpegOffsets(t),"jpeg","JPEG");if(NS.isPngFile(t))return ua(NS.findPngOffsets(t,e),"png","PNG");if(LS.isHeicFile(t))return ua(LS.findHeicOffsets(t),"heic","HEIC");if(RS.isAvifFile(t))return ua(RS.findAvifOffsets(t),"avif","AVIF");if(FS.isWebpFile(t))return ua(FS.findOffsets(t),"webp","WebP");if(DS.isGifFile(t))return ua(DS.findOffsets(t),"gif","GIF");if(MS.isXMLFile(t))return ua(MS.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function ua(t,e,n){return At({},t,{fileType:{value:e,description:n}})}const wt={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${Number(t[0]/t[1]).toFixed(1)}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":t===4?"millimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},FocalLengthIn35mmFilm(t){return t===0?"Unknown":t+" mm"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},_P={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:wt.XResolution},283:{name:"YResolution",description:wt.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:wt.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:{name:"XPTitle",description:zd},40092:{name:"XPComment",description:zd},40093:{name:"XPAuthor",description:zd},40094:{name:"XPKeywords",description:zd},40095:{name:"XPSubject",description:zd},42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:wt.LightSource},50779:{name:"CalibrationIlluminant2",description:wt.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function zd(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const G5={33434:{name:"ExposureTime",description:wt.ExposureTime},33437:{name:"FNumber",description:wt.FNumber},34850:{name:"ExposureProgram",description:wt.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>pr(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:wt.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:wt.ShutterSpeedValue},37378:{name:"ApertureValue",description:wt.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:wt.MeteringMode},37384:{name:"LightSource",description:wt.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:wt.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:by},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:wt.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:wt.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:wt.CustomRendered},41986:{name:"ExposureMode",description:wt.ExposureMode},41987:{name:"WhiteBalance",description:wt.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:wt.FocalLengthIn35mmFilm},41990:{name:"SceneCaptureType",description:wt.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:wt.Contrast},41993:{name:"Saturation",description:wt.Saturation},41994:{name:"Sharpness",description:wt.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const i=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(i.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},W5={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:vg},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:vg},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:by},28:{name:"GPSAreaInformation",description:by},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},K5={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>pr(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},V5={45056:{name:"MPFVersion",description:t=>pr(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},Y5={4:{name:"ShotInfo",description:t=>t}},Z5={0:{name:"PentaxVersion",description:t=>t.join(".")},5:"PentaxModelID",555:"LevelInfo"},US=At({},_P,G5),tx="0th",bP="1st",yP="exif",wP="gps",xP="interoperability",kP="mpf",SP="canon",nx="pentax",da={[tx]:US,[bP]:_P,[yP]:US,[wP]:W5,[xP]:K5,[kP]:V5,[SP]:Y5,[nx]:Z5},EP={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},Ty={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Ke={getAsciiValue:J5,getByteAt:TP,getAsciiAt:X5,getShortAt:Q5,getLongAt:bg,getRationalAt:eq,getUndefinedAt:tq,getSlongAt:Cy,getSrationalAt:nq,getIfdPointerAt:rq,typeSizes:EP,tagTypes:Ty,getTypeSize:iq};function J5(t){return t.map(e=>String.fromCharCode(e))}function TP(t,e){return t.getUint8(e)}function X5(t,e){return t.getUint8(e)}function Q5(t,e,n){return t.getUint16(e,n===cs.LITTLE_ENDIAN)}function bg(t,e,n){return t.getUint32(e,n===cs.LITTLE_ENDIAN)}function eq(t,e,n){return[bg(t,e,n),bg(t,e+4,n)]}function tq(t,e){return TP(t,e)}function Cy(t,e,n){return t.getInt32(e,n===cs.LITTLE_ENDIAN)}function nq(t,e,n){return[Cy(t,e,n),Cy(t,e+4,n)]}function rq(t,e,n){return bg(t,e,n)}function iq(t){if(Ty[t]===void 0)throw new Error("No such type found.");return EP[Ty[t]]}const oq={1:Ke.getByteAt,2:Ke.getAsciiAt,3:Ke.getShortAt,4:Ke.getLongAt,5:Ke.getRationalAt,7:Ke.getUndefinedAt,9:Ke.getSlongAt,10:Ke.getSrationalAt,13:Ke.getIfdPointerAt};function CP(t,e,n){return e+Ke.getLongAt(t,e+4,n)}function Ya(t,e,n,r,i,o){const s=Ke.getTypeSize("SHORT"),a=12,l={},u=sq(t,r,i);r+=s;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=aq(t,e,n,r,i,o);f!==void 0&&(l[f.name]={id:f.id,value:f.value,description:f.description},(f.name==="MakerNote"||e===nx&&f.name==="LevelInfo")&&(l[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-Ke.getTypeSize("LONG")){const d=Ke.getLongAt(t,r,i);d!==0&&e===tx&&(l.Thumbnail=Ya(t,bP,n,n+d,i,o))}return l}function sq(t,e,n){return e+Ke.getTypeSize("SHORT")<=t.byteLength?Ke.getShortAt(t,e,n):0}function aq(t,e,n,r,i,o){const a=Ke.getTypeSize("SHORT"),l=a+Ke.getTypeSize("SHORT"),u=l+Ke.getTypeSize("LONG"),d=Ke.getShortAt(t,r,i),f=Ke.getShortAt(t,r+a,i),h=Ke.getLongAt(t,r+l,i);let p,g;if(Ke.typeSizes[f]===void 0||!o&&da[e][d]===void 0)return;if(lq(f,h))g=r+u,p=jS(t,g,f,h,i);else if(g=Ke.getLongAt(t,r+u,i),cq(t,n,g,f,h)){const b=d===33723;p=jS(t,n+g,f,h,i,b)}else p="<faulty value>";f===Ke.tagTypes.ASCII&&(p=uq(p),p=dq(p));let m=`undefined-${d}`,v=p;if(da[e][d]!==void 0)if(da[e][d].name!==void 0&&da[e][d].description!==void 0){m=da[e][d].name;try{v=da[e][d].description(p)}catch{v=BS(p)}}else f===Ke.tagTypes.RATIONAL||f===Ke.tagTypes.SRATIONAL?(m=da[e][d],v=""+p[0]/p[1]):(m=da[e][d],v=BS(p));return{id:d,name:m,value:p,description:v,__offset:g}}function lq(t,e){return Ke.typeSizes[t]*e<=Ke.getTypeSize("LONG")}function jS(t,e,n,r,i,o=!1){let s=[];o&&(r=r*Ke.typeSizes[n],n=Ke.tagTypes.BYTE);for(let a=0;a<r;a++)s.push(oq[n](t,e,i)),e+=Ke.typeSizes[n];return n===Ke.tagTypes.ASCII?s=Ke.getAsciiValue(s):s.length===1&&(s=s[0]),s}function cq(t,e,n,r,i){return e+n+Ke.typeSizes[r]*i<=t.byteLength}function uq(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function dq(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function BS(t){return t instanceof Array?t.join(", "):t}const qS="Exif IFD Pointer",HS="GPS Info IFD Pointer",GS="Interoperability IFD Pointer",AP={read:fq};function fq(t,e,n){const r=cs.getByteOrder(t,e);let i=hq(t,e,r,n);return i=pq(i,t,e,r,n),i=gq(i,t,e,r,n),i=mq(i,t,e,r,n),{tags:i,byteOrder:r}}function hq(t,e,n,r){return Ya(t,tx,e,CP(t,e,n),n,r)}function pq(t,e,n,r,i){return t[qS]!==void 0?At(t,Ya(e,yP,n,n+t[qS].value,r,i)):t}function gq(t,e,n,r,i){return t[HS]!==void 0?At(t,Ya(e,wP,n,n+t[HS].value,r,i)):t}function mq(t,e,n,r,i){return t[GS]!==void 0?At(t,Ya(e,xP,n,n+t[GS].value,r,i)):t}const vq={read:_q},Wc=16;function _q(t,e,n){const r=cs.getByteOrder(t,e),i=Ya(t,kP,e,CP(t,e,r),r,n);return bq(t,e,i,r)}function bq(t,e,n,r){if(!n.MPEntry)return n;const i=[];for(let o=0;o<Math.ceil(n.MPEntry.value.length/Wc);o++){i[o]={};const s=ef(n.MPEntry.value,o*Wc,Ke.getTypeSize("LONG"),r);i[o].ImageFlags=yq(s),i[o].ImageFormat=wq(s),i[o].ImageType=xq(s);const a=ef(n.MPEntry.value,o*Wc+4,Ke.getTypeSize("LONG"),r);i[o].ImageSize={value:a,description:""+a};const l=kq(o,n.MPEntry,r,e);i[o].ImageOffset={value:l,description:""+l};const u=ef(n.MPEntry.value,o*Wc+12,Ke.getTypeSize("SHORT"),r);i[o].DependentImage1EntryNumber={value:u,description:""+u};const d=ef(n.MPEntry.value,o*Wc+14,Ke.getTypeSize("SHORT"),r);i[o].DependentImage2EntryNumber={value:d,description:""+d},i[o].image=t.buffer.slice(l,l+a),rP(i[o],"base64",function(){return iP(this.image)})}return n.Images=i,n}function ef(t,e,n,r){if(r===cs.LITTLE_ENDIAN){let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*s;return o}let i=0;for(let o=0;o<n;o++)i+=t[e+o]<<8*(n-1-o);return i}function yq(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function wq(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function xq(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function kq(t,e,n,r){return Sq(t)?0:ef(e.value,t*Wc+8,Ke.getTypeSize("LONG"),n)+r}function Sq(t){return t===0}const Eq={read:Tq};function Tq(t,e){const n=Cq(t,e),r=Pq(t,e,n);return{"Bits Per Sample":Aq(t,e,n),"Image Height":$q(t,e,n),"Image Width":Iq(t,e,n),"Color Components":r,Subsampling:r&&Oq(t,e,r.value,n)}}function Cq(t,e){return Ke.getShortAt(t,e)}function Aq(t,e,n){if(3>n)return;const o=Ke.getByteAt(t,e+2);return{value:o,description:""+o}}function $q(t,e,n){if(5>n)return;const o=Ke.getShortAt(t,e+3);return{value:o,description:`${o}px`}}function Iq(t,e,n){if(7>n)return;const o=Ke.getShortAt(t,e+5);return{value:o,description:`${o}px`}}function Pq(t,e,n){if(8>n)return;const o=Ke.getByteAt(t,e+7);return{value:o,description:""+o}}function Oq(t,e,n,r){if(8+3*n>r)return;const s=[];for(let a=0;a<n;a++){const l=e+8+a*3;s.push([Ke.getByteAt(t,l),Ke.getByteAt(t,l+1),Ke.getByteAt(t,l+2)])}return{value:s,description:s.length>1?Nq(s)+Lq(s):""}}function Nq(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function Lq(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const Rq={read:Fq};function Fq(t,e){const n=Dq(t,e),r=qq(t,e,n),i=Hq(t,e,n),o={"JFIF Version":Mq(t,e,n),"Resolution Unit":zq(t,e,n),XResolution:jq(t,e,n),YResolution:Bq(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const s=Gq(t,e,3*r.value*i.value,n);s&&(o["JFIF Thumbnail"]=s)}for(const s in o)o[s]===void 0&&delete o[s];return o}function Dq(t,e){return Ke.getShortAt(t,e)}function Mq(t,e,n){if(9>n)return;const o=Ke.getByteAt(t,e+7),s=Ke.getByteAt(t,e+7+1);return{value:o*256+s,description:o+"."+s}}function zq(t,e,n){if(10>n)return;const o=Ke.getByteAt(t,e+9);return{value:o,description:Uq(o)}}function Uq(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function jq(t,e,n){if(12>n)return;const o=Ke.getShortAt(t,e+10);return{value:o,description:""+o}}function Bq(t,e,n){if(14>n)return;const o=Ke.getShortAt(t,e+12);return{value:o,description:""+o}}function qq(t,e,n){if(15>n)return;const o=Ke.getByteAt(t,e+14);return{value:o,description:`${o}px`}}function Hq(t,e,n){if(16>n)return;const o=Ke.getByteAt(t,e+15);return{value:o,description:`${o}px`}}function Gq(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const ka={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:k_},336:{name:"Time Sent",description:S_},346:{name:"Coded Character Set",description:WS,encoding_name:WS},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>pr(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=pr(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=pr(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:k_},572:{name:"Time Created",description:S_},574:{name:"Digital Creation Date",description:k_},575:{name:"Digital Creation Time",description:S_},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=pr(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=pr(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=pr(t),n=e.charAt(0),r=e.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(pr(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(pr(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=pr(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return pr(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=pr(t);if(e["ObjectData Preview File Format"]){const i=pr(e["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function k_(t){const e=pr(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function S_(t){const e=pr(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function WS(t){const e=pr(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const Wq={get:Kq};function Kq(){if(typeof TextDecoder<"u")return TextDecoder}const Vq=5,$P={decode:Yq,TAG_HEADER_SIZE:Vq};function Yq(t,e){const n=Wq.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(i=>String.fromCharCode(i)).join("");return Zq(r)}function Zq(t){try{return decodeURIComponent(escape(t))}catch{return t}}const Jq=943868237,tf=4,zp=2,Xq=1,Qq=2,IP=4,eH=tf+zp+Qq+IP,tH=1028,PP=5,Ay={read:nH};function nH(t,e,n){try{if(Array.isArray(t))return KS(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:i}=rH(t,e);return KS(t,r,i,n)}catch{return{}}}function rH(t,e){for(;e+eH<=t.byteLength;){const n=iH(t,e);if(oH(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+sH(n)}throw new Error("No IPTC NAA resource block.")}function iH(t,e){if(t.getUint32(e,!1)!==Jq)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+tf+zp),r=(n%2===0?n+1:n)+Xq;return{headerSize:tf+zp+r+IP,type:t.getUint16(e+tf),size:t.getUint32(e+tf+zp+r)}}function oH(t){return t.type===tH}function sH(t){return t.size%2!==0?1:0}function KS(t,e,n,r){const i={};let o;const s=n+e.size;for(;n<s&&n<t.byteLength;){const{tag:a,tagSize:l}=aH(t,n,i,o,r);if(a===null)break;a&&("encoding"in a&&(o=a.encoding),i[a.name]===void 0||a.repeatable===void 0?i[a.name]={id:a.id,value:a.value,description:a.description}:(i[a.name]instanceof Array||(i[a.name]=[{id:i[a.name].id,value:i[a.name].value,description:i[a.name].description}]),i[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=PP+l}return i}function aH(t,e,n,r,i){if(lH(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),l=t.getUint16(e+3);if(!i&&!ka.iptc[a])return{tag:void 0,tagSize:l};const u=cH(t,e+PP,l),d={id:a,name:uH(ka.iptc[a],a,u),value:u,description:hH(ka.iptc[a],u,n,r)};return mH(a)&&(d.repeatable=!0),vH(a)&&(d.encoding=ka.iptc[a].encoding_name(u)),{tag:d,tagSize:l}}function lH(t,e){return t.getUint8(e)!==28}function cH(t,e,n){const r=[];for(let i=0;i<n;i++)r.push(t.getUint8(e+i));return r}function uH(t,e,n){return t?dH(t)?t:fH(t)?t.name(n):t.name:`undefined-${e}`}function dH(t){return typeof t=="string"}function fH(t){return typeof t.name=="function"}function hH(t,e,n,r){if(gH(t))try{return t.description(e,n)}catch{}return pH(t,e)?$P.decode(r,e):e}function pH(t,e){return t&&e instanceof Array}function gH(t){return t&&t.description!==void 0}function mH(t){return ka.iptc[t]&&ka.iptc[t].repeatable}function vH(t){return ka.iptc[t]&&ka.iptc[t].encoding_name!==void 0}const tp={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>wt.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Fc(wt.XResolution,t),"tiff:YResolution":t=>Fc(wt.YResolution,t),"exif:ApertureValue":t=>Fc(wt.ApertureValue,t),"exif:GPSLatitude":VS,"exif:GPSLongitude":VS,"exif:FNumber":t=>Fc(wt.FNumber,t),"exif:FocalLength":t=>Fc(wt.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>wt.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>wt.ColorSpace(_H(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return wt.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>wt.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>wt.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>wt.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>wt.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return OP(t)?wt.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>wt.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>wt.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>wt.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>wt.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Fc(wt.ShutterSpeedValue,t),"exif:WhiteBalance":t=>wt.WhiteBalance(parseInt(t,10))};function Fc(t,e){return OP(e)?t(e.split("/")):e}function _H(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function OP(t){return/^-?\d+\/-?\d+$/.test(t)}function VS(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),i=parseFloat(n),o=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+o}return t}const bH={get:yH};function yH(t){if(t)return t;if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:e,onErrorStopParsing:n}=__non_webpack_require__("@xmldom/xmldom");return new e({onError:n})}catch{return}}function wH(t){const e=["prefix is non-null and namespace is null","prefix not bound to a namespace","prefix inte bundet till en namnrymd",/Namespace prefix .+ is not defined/];for(let n=0;n<e.length;n++)if(new RegExp(e[n]).test(t.message))return!0;return!1}function xH(t){const e=t.match(/<([A-Za-z_][A-Za-z0-9._-]*)([^>]*)>/);if(!e)return t;const n=e[1],r=kH(t),o=SH(t).filter(a=>r.indexOf(a)===-1);if(o.length===0)return t;const s=TH(o);return CH(t,n,s)}function kH(t){const e=[],n=/xmlns:([\w-]+)=["'][^"']+["']/g;let r;for(;(r=n.exec(t))!==null;)e.indexOf(r[1])===-1&&e.push(r[1]);return e}function SH(t){const e=[],n=/\b([A-Za-z_][A-Za-z0-9._-]*):[A-Za-z_][A-Za-z0-9._-]*\b/g;let r;for(;(r=n.exec(t))!==null;){const i=r[1];i==="xmlns"||i==="xml"||e.indexOf(i)===-1&&e.push(i)}return e}const EH={xmp:"http://ns.adobe.com/xap/1.0/",tiff:"http://ns.adobe.com/tiff/1.0/",exif:"http://ns.adobe.com/exif/1.0/",dc:"http://purl.org/dc/elements/1.1/",xmpMM:"http://ns.adobe.com/xap/1.0/mm/",stEvt:"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#",stRef:"http://ns.adobe.com/xap/1.0/sType/ResourceRef#",photoshop:"http://ns.adobe.com/photoshop/1.0/"};function TH(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=EH[r]||"http://fallback.namespace/"+r;e.push(" xmlns:"+r+'="'+i+'"')}return e.join("")}function CH(t,e,n){const r=new RegExp("<"+e+"([^>]*)>");return t.replace(r,"<"+e+"$1"+n+">")}const YS={read:$H};class AH extends Error{constructor(e){super(e),this.name="ParseError"}}function $H(t,e,n){const r={};if(typeof t=="string")return np(r,t,n),r;const[i,o]=IH(t,e),s=np(r,i,n);if(o){const a=np(r,o,n);!s&&!a&&(delete r._raw,np(r,$y(t,e),n))}return r}function IH(t,e){if(e.length===0)return[];const n=[$y(t,e.slice(0,1))];return e.length>1&&n.push($y(t,e.slice(1))),n}function $y(t,e){const n=e.reduce((o,s)=>o+s.length,0),r=new Uint8Array(n);let i=0;for(let o=0;o<e.length;o++){const s=e[o],a=t.buffer.slice(s.dataOffset,s.dataOffset+s.length);r.set(new Uint8Array(a),i),i+=s.length}return new DataView(r.buffer)}function np(t,e,n){try{const{doc:r,raw:i}=PH(e,n);t._raw=(t._raw||"")+i;const o=LP(r);return At(t,FP(RP(o,!0))),!0}catch{return!1}}function PH(t,e){const n=bH.get(e);if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const r=typeof t=="string"?t:Et(t,0,t.byteLength);return{doc:NP(n,OH(r)),raw:r}}function OH(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function NP(t,e,n=!1){try{const r=t.parseFromString(e,"application/xml"),i=r.getElementsByTagName("parsererror");if(i.length>0)throw new AH(i[0].textContent);return r}catch(r){if(r.name==="ParseError"&&wH(r)&&!n)return NP(t,xH(e),!0);throw r}}function LP(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return LP(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function RP(t,e=!1){const n=NH(t);return LH(n)?e?{}:RH(n[0]):FH(n)}function NH(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function LH(t){return t.length===1&&t[0].nodeName==="#text"}function RH(t){return t.nodeValue}function FH(t){const e={};return t.forEach(n=>{if(DH(n)){const r=MH(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function DH(t){return t.nodeName&&t.nodeName!=="#text"}function MH(t){return{attributes:zH(t),value:RP(t)}}function zH(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function FP(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(i=>{At(e,rx(i.attributes)),typeof i.value=="object"&&At(e,DP(i.value))})}return e}function rx(t){const e={};for(const n in t)try{UH(n)&&(e[nv(n)]={value:t[n],attributes:{},description:Xs(t[n],n)})}catch{}return e}function UH(t){return t!=="rdf:parseType"&&!tv(t)}function tv(t){return t.split(":")[0]==="xmlns"}function nv(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Xs(t,e=void 0){if(Array.isArray(t)){const n=jH(t);return e&&typeof tp[e]=="function"?tp[e](t,n):n}if(typeof t=="object")return BH(t);try{return e&&typeof tp[e]=="function"?tp[e](t):decodeURIComponent(escape(t))}catch{return t}}function jH(t){return t.map(e=>e.value!==void 0?Xs(e.value):Xs(e)).join(", ")}function BH(t){const e=[];for(const n in t)e.push(`${qH(n)}: ${Xs(t[n].value)}`);return e.join("; ")}function qH(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function DP(t){const e={};for(const n in t)try{tv(n)||(e[nv(n)]=HH(t[n],n))}catch{}return e}function HH(t,e){return WH(t)?KH(t,e):GH(t)?{value:"",attributes:{},description:""}:MP(t)?zP(t,e):UP(t)?jP(t,e):BP(t)?qP(t,e):ZH(t)?JH(t,e):ix(t,e)}function GH(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function WH(t){return Array.isArray(t)}function KH(t,e){return ix(t[t.length-1],e)}function MP(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function zP(t,e){const n=Nf(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),At(n,Nf(t),VH(t));const r=YH(t);return{value:r,attributes:n,description:Xs(r,e)}}function Nf(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!tv(n)&&(e[nv(n)]=t.attributes[n]);return e}function VH(t){const e={};for(const n in t.value)n!=="rdf:value"&&!tv(n)&&(e[nv(n)]=t.value[n].value);return e}function YH(t){return GP(t.value["rdf:value"])||t.value["rdf:value"].value}function UP(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function jP(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(At(n.value,rx(t.value["rdf:Description"].attributes)),At(n.attributes,Nf(t)),t=t.value["rdf:Description"]),At(n.value,DP(t.value)),n.description=Xs(n.value,e),n}function BP(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function qP(t,e){const n=rx(t.attributes);return{value:n,attributes:{},description:Xs(n,e)}}function ZH(t){return HP(t.value)!==void 0}function HP(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function JH(t,e){let n=HP(t.value).value["rdf:li"];const r=Nf(t),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(o=>{i.push(XH(o))}),{value:i,attributes:r,description:Xs(i,e)}}function XH(t){return MP(t)?zP(t):UP(t)?jP(t).value:BP(t)?qP(t).value:ix(t)}function ix(t,e){const n=GP(t)||FP(t.value);return{value:n,attributes:Nf(t),description:Xs(n,e)}}function GP(t){return t.attributes&&t.attributes["rdf:resource"]}const Cs={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},WP=24,E_={2e3:{name:"PathInformation",description:QH},2999:{name:"ClippingPathName",description(t){const[,e]=nP(t,0);return e}}};function QH(t){const n={},r=[];for(let i=0;i<t.byteLength;i+=2+WP){const o=Ke.getShortAt(t,i);T_[o]&&(n[o]||(n[o]=T_[o].description),r.push({type:o,path:T_[o].path(t,i+2)}))}return JSON.stringify({types:n,paths:r})}const T_={[Cs.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[Ke.getShortAt(t,e)]},[Cs.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:rp},[Cs.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:rp},[Cs.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[Ke.getShortAt(t,e)]},[Cs.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:rp},[Cs.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:rp},[Cs.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Cs.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[Ke.getShortAt(t,e)]},[Cs.CLIPBOARD]:{description:"Clipboard",path:tG}};function rp(t,e){const r=[];for(let i=0;i<WP;i+=8)r.push(eG(t,e+i));return r}function eG(t,e){const n=cl(t,e,8);return[cl(t,e+4,8),n]}function tG(t,e){return[[cl(t,e,8),cl(t,e+4,8),cl(t,e+8,8),cl(t,e+12,8)],cl(t,e+16,8)]}function cl(t,e,n){const r=Ke.getLongAt(t,e),i=r>>>31?-1:1,o=(r&2130706432)>>>32-n,s=r&parseInt(oP("1",32-n),2);return i*Q6(o.toString(2)+"."+X6(s.toString(2),32-n,"0"),2)}const nG={read:oG},KP="8BIM",rG=2,iG=4,ZS=KP.length;function oG(t,e){const n=bS(new Uint8Array(t).buffer),r={};let i=0;for(;i<t.length;){const o=Et(n,i,ZS);i+=ZS;const s=Ke.getShortAt(n,i);i+=rG;const{tagName:a,tagNameSize:l}=sG(n,i);i+=l;const u=Ke.getLongAt(n,i);if(i+=iG,o===KP){const d=bS(n.buffer,i,u),f={id:s,value:Et(d,0,u)};if(E_[s]){try{f.description=E_[s].description(d)}catch{f.description="<no description formatter>"}r[a||E_[s].name]=f}else e&&(r[`undefined-${s}`]=f)}i+=u+u%2}return r}function sG(t,e){const[n,r]=nP(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const JS={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},XS={4:{name:"Preferred CMM type",value:(t,e)=>Et(t,e,4),description:t=>t!==null?C_(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>Et(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>Et(t,e,4)},20:{name:"Connection Space",value:(t,e)=>Et(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>aG(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>lG(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>Et(t,e,4),description:t=>C_(t)},48:{name:"Device Manufacturer",value:(t,e)=>Et(t,e,4),description:t=>C_(t)},52:{name:"Device Model Number",value:(t,e)=>Et(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>Et(t,e,4)}};function aG(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,i=t.getUint16(e+4),o=t.getUint16(e+6),s=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,i,o,s,a))}function lG(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function C_(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const QS={read:vG},cG=84,uG=128,dG="acsp",fG="desc",hG="mluc",pG="text",gG="sig ",mG=12;function vG(t,e,n){return n&&e[0].compressionMethod!==mg?_G(t,e):yG(t,e)}function _G(t,e){if(!bG(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return aP(n,e[0].compressionMethod,"utf-8","dataview").then(VP).catch(()=>({}))}function bG(t){return t===sP}function yG(t,e){try{const n=e.reduce((s,a)=>s+a.length,0),r=new Uint8Array(n);let i=0;const o=wG(t);for(let s=1;s<=e.length;s++){const a=e.find(d=>d.chunkNumber===s);if(!a)throw new Error(`ICC chunk ${s} not found`);const l=o.slice(a.offset,a.offset+a.length),u=new Uint8Array(l);r.set(u,i),i+=u.length}return VP(new DataView(r.buffer))}catch{return{}}}function wG(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function xG(t){return t.length<uG+4}function kG(t,e){return t.length<e+mG}function VP(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.byteLength<cG)throw new Error("ICC profile too short");const r={},i=Object.keys(XS);for(let l=0;l<i.length;l++){const u=i[l],d=XS[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(ip(e.slice(36,40))!==dG)throw new Error("ICC profile: missing signature");if(xG(e))return r;const s=t.getUint32(128);let a=132;for(let l=0;l<s;l++){if(kG(e,a))return r;const u=Et(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=Et(t,d,4);if(h===fG){const p=t.getUint32(d+8);if(p>f)return r;const g=ip(e.slice(d+12,d+p+11));Ud(r,u,g)}else if(h===hG){const p=t.getUint32(d+8),g=t.getUint32(d+12);let m=d+16;const v=[];for(let b=0;b<p;b++){const y=Et(t,m+0,2),w=Et(t,m+2,2),E=t.getUint32(m+4),C=t.getUint32(m+8),S=Z6(t,d+C,E);v.push({languageCode:y,countryCode:w,text:S}),m+=g}if(p===1)Ud(r,u,v[0].text);else{const b={};for(let y=0;y<v.length;y++)b[`${v[y].languageCode}-${v[y].countryCode}`]=v[y].text;Ud(r,u,b)}}else if(h===pG){const p=ip(e.slice(d+8,d+f-7));Ud(r,u,p)}else if(h===gG){const p=ip(e.slice(d+8,d+12));Ud(r,u,p)}a=a+12}return r}function ip(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ud(t,e,n){JS[e]?t[JS[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Up=27,SG={read:EG,SHOT_INFO_AUTO_ROTATE:Up};function EG(t,e,n,r,i){let o=Ya(t,SP,e,e+n,r,i);return o.ShotInfo&&(o=At({},o,TG(o.ShotInfo.value)),delete o.ShotInfo),o}function TG(t){const e={};return t[Up]!==void 0&&(e.AutoRotate={value:t[Up],description:CG(t[Up])}),e}function CG(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const YP=8,ZP=YP+2,JP={K3_III:78420},jp={CAMERA_ORIENTATION:1,ROLL_ANGLE:3,PITCH_ANGLE:5},AG={read:$G,PENTAX_IFD_OFFSET:ZP,MODEL_ID:JP,LIK3III:jp};function $G(t,e,n,r){const i=cs.getByteOrder(t,e+n+YP),o=e+n;let s=Ya(t,nx,o,o+ZP,i,r);return IG(s)&&(s=At({},s,PG(t,o+s.LevelInfo.__offset,i)),delete s.LevelInfo),s}function IG(t){return t.PentaxModelID&&t.PentaxModelID.value===JP.K3_III&&t.LevelInfo}function PG(t,e,n){const r={};if(e+7>t.byteLength)return r;const i=t.getInt8(e+jp.CAMERA_ORIENTATION);r.CameraOrientation={value:i,description:OG(i)};const o=t.getInt16(e+jp.ROLL_ANGLE,n===cs.LITTLE_ENDIAN);r.RollAngle={value:o,description:NG(o)};const s=t.getInt16(e+jp.PITCH_ANGLE,n===cs.LITTLE_ENDIAN);return r.PitchAngle={value:s,description:LG(s)},r}function OG(t){return t===0?"Horizontal (normal)":t===1?"Rotate 270 CW":t===2?"Rotate 180":t===3?"Rotate 90 CW":t===4?"Upwards":t===5?"Downwards":"Unknown"}function NG(t){return""+t*-.5}function LG(t){return""+t*-.5}const RG={read:FG};function FG(t,e){return{"Image Width":DG(t,e),"Image Height":MG(t,e),"Bit Depth":zG(t,e),"Color Type":UG(t,e),Compression:jG(t,e),Filter:BG(t,e),Interlace:qG(t,e)}}function DG(t,e){if(e+0+4>t.byteLength)return;const i=Ke.getLongAt(t,e);return{value:i,description:`${i}px`}}function MG(t,e){if(e+4+4>t.byteLength)return;const i=Ke.getLongAt(t,e+4);return{value:i,description:`${i}px`}}function zG(t,e){if(e+8+1>t.byteLength)return;const i=Ke.getByteAt(t,e+8);return{value:i,description:`${i}`}}function UG(t,e){const i={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const o=Ke.getByteAt(t,e+9);return{value:o,description:i[o]||"Unknown"}}function jG(t,e){if(e+10+1>t.byteLength)return;const i=Ke.getByteAt(t,e+10);return{value:i,description:i===0?"Deflate/Inflate":"Unknown"}}function BG(t,e){if(e+11+1>t.byteLength)return;const i=Ke.getByteAt(t,e+11);return{value:i,description:i===0?"Adaptive":"Unknown"}}function qG(t,e){const i={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const o=Ke.getByteAt(t,e+12);return{value:o,description:i[o]||"Unknown"}}const HG={read:YG},Iy="STATE_KEYWORD",Py="STATE_COMPRESSION",Oy="STATE_LANG",GG="STATE_TRANSLATED_KEYWORD",Ny="STATE_TEXT",WG=1,KG=1,VG=6;function YG(t,e,n,r){const i={},o=[];for(let s=0;s<e.length;s++){const{offset:a,length:l,type:u}=e[s],d=ZG(t,a,l,u,n);if(d instanceof Promise)o.push(d.then(({name:f,value:h,description:p})=>{try{if(yS.USE_EXIF&&tE(f,h))return{__exif:AP.read(rE(h),VG,r).tags};if(yS.USE_IPTC&&nE(f,h))return{__iptc:Ay.read(rE(h),0,r)};if(f&&!tE(f,h)&&!nE(f,h))return{[f]:{value:h,description:p}}}catch{}return{}}));else{const{name:f,value:h,description:p}=d;f&&(i[f]={value:h,description:p})}}return{readTags:i,readTagsPromise:o.length>0?Promise.all(o):void 0}}function ZG(t,e,n,r,i){const o=[],s=[];let a,l=Iy,u=mg;for(let f=0;f<n&&e+f<t.byteLength;f++){if(l===Py){u=JG({type:r,dataView:t,offset:e+f}),r===Wl&&(f+=WG),l=eE(r,l);continue}else if(l===Ny){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?l=eE(r,l):l===Iy?o.push(h):l===Oy&&s.push(h)}if(u!==mg&&!i)return{};const d=aP(a,u,XG(r));return d instanceof Promise?d.then(f=>A_(f,r,s,o)).catch(()=>A_("<text using unknown compression>".split(""),r,s,o)):A_(d,r,s,o)}function JG({type:t,dataView:e,offset:n}){if(t===Wl){if(e.getUint8(n)===KG)return e.getUint8(n+1)}else if(t===Xm)return e.getUint8(n);return mg}function eE(t,e){return e===Iy&&[Wl,Xm].includes(t)?Py:e===Py?t===Wl?Oy:Ny:e===Oy?GG:Ny}function XG(t){return t===Q0||t===Xm?"latin1":"utf-8"}function A_(t,e,n,r){const i=e9(t);return{name:QG(e,n,r),value:i,description:e===Wl?t9(t):i}}function QG(t,e,n){const r=Gl(n);if(t===Q0||e.length===0)return r;const i=Gl(e);return`${r} (${i})`}function e9(t){return t instanceof DataView?Et(t,0,t.byteLength):t}function t9(t){return $P.decode("UTF-8",t)}function tE(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function nE(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function rE(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return n9(e[2].replace(/\n/g,""))}function n9(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const r9={read:i9};function i9(t,e){const n={};for(let r=0;r<e.length;r++){const i=Ke.getLongAt(t,e[r]+Gc),o=Et(t,e[r]+Va,ko);o===hP?(n["Pixels Per Unit X"]=o9(t,e[r],i),n["Pixels Per Unit Y"]=s9(t,e[r],i),n["Pixel Units"]=a9(t,e[r],i)):o===pP&&(n["Modify Date"]=l9(t,e[r],i))}return n}function o9(t,e,n){if(!rv(t,e,n,0,4))return;const o=Ke.getLongAt(t,e+Lr+0);return{value:o,description:""+o}}function s9(t,e,n){if(!rv(t,e,n,4,4))return;const o=Ke.getLongAt(t,e+Lr+4);return{value:o,description:""+o}}function a9(t,e,n){if(!rv(t,e,n,8,1))return;const o=Ke.getByteAt(t,e+Lr+8);return{value:o,description:o===1?"meters":"Unknown"}}function l9(t,e,n){if(!rv(t,e,n,0,7))return;const i=Ke.getShortAt(t,e+Lr),o=Ke.getByteAt(t,e+Lr+2),s=Ke.getByteAt(t,e+Lr+3),a=Ke.getByteAt(t,e+Lr+4),l=Ke.getByteAt(t,e+Lr+5),u=Ke.getByteAt(t,e+Lr+6);return{value:[i,o,s,a,l,u],description:`${Dc(i,4)}-${Dc(o,2)}-${Dc(s,2)} ${Dc(a,2)}:${Dc(l,2)}:${Dc(u,2)}`}}function rv(t,e,n,r,i){return r+i<=n&&e+Lr+r+i<=t.byteLength}function Dc(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const c9={read:f9},u9=4,d9=7;function f9(t,e){const n={},r=Ke.getByteAt(t,e);return n.Alpha=h9(r),n.Animation=p9(r),n.ImageWidth=iE(t,e+u9),n.ImageHeight=iE(t,e+d9),n}function h9(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function p9(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function iE(t,e){const n=Ke.getByteAt(t,e)+256*Ke.getByteAt(t,e+1)+65536*Ke.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const g9={read:m9};function m9(t){return{"GIF Version":v9(t),"Image Width":_9(t),"Image Height":b9(t),"Global Color Map":y9(t),"Bits Per Pixel":x9(t),"Color Resolution Depth":w9(t)}}function v9(t){if(6>t.byteLength)return;const r=Et(t,3,3);return{value:r,description:r}}function _9(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function b9(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function y9(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&128)>>>7;return{value:i,description:i===1?"Yes":"No"}}function w9(t){if(11>t.byteLength)return;const i=((t.getUint8(10)&112)>>>4)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}function x9(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&7)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}const k9=[6,7,99],S9={get:E9};function E9(t,e,n){if(T9(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),rP(e,"base64",function(){return iP(this.image)})}return e}function T9(t){return t&&(t.Compression===void 0||k9.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}const $_={INCHES:2,CENTIMETERS:3,MILLIMETERS:4},I_={INCHES_TO_MM:25.4,CM_TO_MM:10,MM_TO_MM:1},C9={get:A9};function A9(t,e){const n={};let r=!1;const i=ol(t,"exif","FocalLength",e),o=ol(t,"exif","FocalPlaneXResolution",e),s=ol(t,"exif","FocalPlaneYResolution",e),a=ol(t,"exif","FocalPlaneResolutionUnit",e),l=ol(t,"file","Image Width",e),u=ol(t,"file","Image Height",e),d=ol(t,"exif","FocalLengthIn35mmFilm",e)||$9(o,s,a,l,u,i);d&&(n.FocalLength35efl={value:d,description:wt.FocalLengthIn35mmFilm(d)},r=!0);const f=I9(i,d);f&&(n.ScaleFactorTo35mmEquivalent=f,r=!0);const h=P9(d);if(h&&(n.FieldOfView=h,r=!0),r)return n}function ol(t,e,n,r){if(r&&t[e]&&t[e][n])return t[e][n].value;if(!r&&t[n])return t[n].value}function $9(t,e,n,r,i,o){if(t&&e&&n&&r&&i&&o)try{let a;switch(n){case $_.INCHES:a=I_.INCHES_TO_MM;break;case $_.CENTIMETERS:a=I_.CM_TO_MM;break;case $_.MILLIMETERS:a=I_.MM_TO_MM;break;default:return}const l=t[0]/t[1]*a,u=e[0]/e[1]*a,d=r/l,f=i/u,h=Math.sqrt(d**2+f**2);return o[0]/o[1]*(43.27/h)}catch{}}function I9(t,e){if(t&&e)try{const n=e/(t[0]/t[1]);return{value:n,description:n.toFixed(1)}}catch{}}function P9(t){if(t)try{const n=2*Math.atan(36/(2*t))*(180/Math.PI);return{value:n,description:n.toFixed(1)+" deg"}}catch{}}function XP(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}XP.prototype=new Error;const QP={MetadataMissingError:XP},O9={load:N9,loadView:eO,errors:QP};function N9(t,e={}){return L9(t)?(e.async=!0,R9(t,e).then(n=>P_(n,e))):B9(t)?(e.async=!0,q9(t).then(n=>P_(n,e))):P_(t,e)}function L9(t){return typeof t=="string"}function R9(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?F9(t,e):D9(t,e):z9(t)?Promise.resolve(J6(t)):U9(t,e)}function F9(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function D9(t,{length:e}={}){return new Promise((n,r)=>{const i={};Number.isInteger(e)&&e>=0&&(i.headers={range:`bytes=0-${e-1}`}),M9(t)(t,i,s=>{if(s.statusCode>=200&&s.statusCode<=299){const a=[];s.on("data",l=>a.push(Buffer.from(l))),s.on("error",l=>r(l)),s.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${s.statusCode} ${s.statusMessage}`),s.resume()}).on("error",s=>r(s))})}function M9(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function z9(t){return/^data:[^;,]*(;base64)?,/.test(t)}function U9(t,{length:e}={}){return new Promise((n,r)=>{const i=j9();i.open(t,(o,s)=>{o?r(o):i.stat(t,(a,l)=>{if(a)r(a);else{const u=Math.min(l.size,e!==void 0?e:l.size),d=Buffer.alloc(u),f={buffer:d,length:u};i.read(s,f,h=>{h?r(h):i.close(s,p=>{p&&console.warn(`Could not close file ${t}:`,p),n(d)})})}})})})}function j9(){try{return __non_webpack_require__("fs")}catch{return}}function B9(t){return typeof File<"u"&&t instanceof File}function q9(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(i.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function P_(t,e){return H9(t)&&(t=new Uint8Array(t).buffer),eO(G9(t),e)}function H9(t){try{return Buffer.isBuffer(t)}catch{return!1}}function G9(t){try{return new DataView(t)}catch{return new tP(t)}}function eO(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1,domParser:i=void 0}={expanded:!1,async:!1,includeUnknown:!1,domParser:void 0}){let o=!1,s={};const a=[],{fileType:l,fileDataOffset:u,jfifDataOffset:d,tiffHeaderOffset:f,iptcDataOffset:h,xmpChunks:p,iccChunks:g,mpfDataOffset:m,pngHeaderOffset:v,pngTextChunks:b,pngChunkOffsets:y,vp8xChunkOffset:w,gifHeaderOffset:E}=q5.parseAppMarkers(t,n);if(W9(u)){o=!0;const x=Eq.read(t,u);e?s.file=x:s=At({},s,x)}if(K9(d)){o=!0;const x=Rq.read(t,d);e?s.jfif=x:s=At({},s,x)}if(V9(f)){o=!0;const{tags:x,byteOrder:$}=AP.read(t,f,r);if(x.Thumbnail&&(s.Thumbnail=x.Thumbnail,delete x.Thumbnail),e?(s.exif=x,Y9(s)):s=At({},s,x),x["IPTC-NAA"]&&!oE(h)){const I=Ay.read(x["IPTC-NAA"].value,0,r);e?s.iptc=I:s=At({},s,I)}if(x.ApplicationNotes&&!sE(p)){const I=YS.read(Gl(x.ApplicationNotes.value),void 0,i);e?s.xmp=I:(delete I._raw,s=At({},s,I))}if(x.ImageSourceData&&x.PhotoshopSettings){const I=nG.read(x.PhotoshopSettings.value,r);e?s.photoshop=I:s=At({},s,I)}if(x.ICC_Profile&&!aE(g)){const I=QS.read(x.ICC_Profile.value,[{offset:0,length:x.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=I:s=At({},s,I)}if(x.MakerNote){if(Z9(x)){const I=SG.read(t,f,x.MakerNote.__offset,$,r);e?s.makerNotes=I:s=At({},s,I)}else if(J9(x)){const I=AG.read(t,f,x.MakerNote.__offset,r);e?s.makerNotes=I:s=At({},s,I)}}x.MakerNote&&delete x.MakerNote.__offset}if(oE(h)){o=!0;const x=Ay.read(t,h,r);e?s.iptc=x:s=At({},s,x)}if(sE(p)){o=!0;const x=YS.read(t,p,i);e?s.xmp=x:(delete x._raw,s=At({},s,x))}if(aE(g)){o=!0;const x=QS.read(t,g,n);x instanceof Promise?a.push(x.then(A)):A(x)}if(X9(m)){o=!0;const x=vq.read(t,m,r);e?s.mpf=x:s=At({},s,x)}if(Q9(v)){o=!0;const x=RG.read(t,v);e?(s.png=s.png?At({},s.png,x):x,s.pngFile=x):s=At({},s,x)}if(e7(b)){o=!0;const{readTags:x,readTagsPromise:$}=HG.read(t,b,n,r);k(x),$&&a.push($.then(I=>I.forEach(k)))}if(t7(y)){o=!0;const x=r9.read(t,y);e?s.png=s.png?At({},s.png,x):x:s=At({},s,x)}if(n7(w)){o=!0;const x=c9.read(t,w);e?s.riff=s.riff?At({},s.riff,x):x:s=At({},s,x)}if(r7(E)){o=!0;const x=g9.read(t,E);e?s.gif=s.gif?At({},s.gif,x):x:s=At({},s,x)}const C=C9.get(s,e);C&&(e?s.composite=C:s=At({},s,C));const S=S9.get(t,s.Thumbnail,f);if(S?(o=!0,s.Thumbnail=S):delete s.Thumbnail,l&&(e?(s.file||(s.file={}),s.file.FileType=l):s.FileType=l,o=!0),!o)throw new QP.MetadataMissingError;if(n)return Promise.all(a).then(()=>s);return s;function A(x){e?s.icc=x:s=At({},s,x)}function k(x){if(e){for(const $ of["exif","iptc"]){const I=`__${$}`;x[I]&&(s[$]=s[$]?At({},s.exif,x[I]):x[I],delete x[I])}s.png=s.png?At({},s.png,x):x,s.pngText=s.pngText?At({},s.png,x):x}else s=At({},s,x.__exif?x.__exif:{},x.__iptc?x.__iptc:{},x),delete s.__exif,delete s.__iptc}}function W9(t){return t!==void 0}function K9(t){return t!==void 0}function V9(t){return t!==void 0}function Y9(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=vg(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=vg(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function oE(t){return t!==void 0}function sE(t){return Array.isArray(t)&&t.length>0}function aE(t){return Array.isArray(t)&&t.length>0}function Z9(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function J9(t){const e="PENTAX ";return t.MakerNote.value.length>e.length&&Gl(t.MakerNote.value.slice(0,e.length))===e&&t.MakerNote.__offset}function X9(t){return t!==void 0}function Q9(t){return t!==void 0}function e7(t){return t!==void 0}function t7(t){return t!==void 0}function n7(t){return t!==void 0}function r7(t){return t!==void 0}const ul=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},i7=/^(?<year>\d{4}):(?<month>\d{2}):(?<date>\d{2}) (?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})$/,o7=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{exif:{DateTimeOriginal:r,DateTime:i}={DateTimeOriginal:void 0,DateTime:void 0},gps:{Latitude:o,Longitude:s}={Latitude:void 0,Longitude:void 0}}=await O9.load(t.file,{expanded:!0}).catch(()=>{})??{},l=(r?.description??i?.description)?.match(i7);let u,d;if(l?.groups){const{year:f,month:h,date:p,hour:g,minute:m,second:v}=l.groups,b=new Date(`${f}-${h}-${p}T${g}:${m}:${v}Z`);Number.isNaN(b.getTime())||(u=b)}return typeof o=="number"&&typeof s=="number"&&Number.isFinite(o)&&Number.isFinite(s)&&(d={latitude:ul(o,7),longitude:ul(s,7)}),{createdDate:u,coordinates:d}},s7=t=>{const e=new Image;return new Promise(n=>{const r=()=>{n({dimensions:{width:e.naturalWidth,height:e.naturalHeight}})};e.addEventListener("load",r,{once:!0}),e.src=t})},a7=async(t,e)=>{const n=document.createElement(e);return new Promise(r=>{const i=()=>{const{duration:o}=n;e==="audio"&&r({duration:o});const{videoWidth:s,videoHeight:a}=n;r({dimensions:{width:s,height:a},duration:o})};n.addEventListener("loadedmetadata",i,{once:!0}),n.src=t})},l7=async(t,e)=>e==="image"?s7(t):a7(t,e),c7=async(t,e,n)=>{const{dimensions:r,duration:i}=await l7(e,n),{createdDate:o,coordinates:s}=await o7(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},u7="modulepreload",d7=function(t){return"/"+t},lE={},tO=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");i=l(n.map(u=>{if(u=d7(u),u in lE)return;lE[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":u7,d||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),d)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},Ly="0.101.0",f7={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.33.1","@sindresorhus/transliterate":"^1.6.0","@sveltia/ui":"^0.27.9","@sveltia/utils":"^0.8.0",deepmerge:"^4.3.1",exifreader:"^4.31.1","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.26.0",leaflet:"^1.9.4",lexical:"^0.33.1",marked:"^16.2.0","marked-bidi":"^1.0.13",mime:"^4.0.7",moment:"^2.30.1","parse-entities":"^4.0.2","pdfjs-dist":"^5.4.54",qrcode:"^1.5.4","sanitize-filename":"^1.6.3","smol-toml":"^1.4.2","svelte-i18n":"^4.0.1",svgo:"^4.0.0","terra-draw":"^1.12.0","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.1",yaml:"^2.8.1"},ox=t=>{const e=`https://unpkg.com/${t}`,n=f7[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},uu=async(t,e)=>tO(()=>import(`${ox(t)}/${e}`),[]),nO=["avif","gif","jpeg","png","webp"],h7=nO.map(t=>`image/${t}`),Ry=/\b(?:avif|gif|jpe?g|png|webp)$/i,p7=["image/svg+xml"],g7=/\b(?:svg)$/i,Zo=[...h7,...p7],rO=["webp"],O_={},m7=async t=>{if(t in O_)return O_[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return O_[t]=i,i},iO=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await m7(e)&&rO.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await uu(`@jsquash/${e}`,"encode.js?module")).default,a=await s(o,{quality:n});return new Blob([a],{type:r})}catch{}}return t.convertToBlob({type:r,quality:n/100})},v7=({width:t,height:e},{width:n=t,height:r=e,fit:i="scale-down"}={})=>{const o={scale:1,width:t,height:e};if(t===r&&e===r)return o;const s=t>e,a=t<r||e<r;let l=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(l=n/t,u=n):(l=r/t,u=r),d=e*l):(n>r?(l=r/e,d=r):(l=n/e,d=n),u=t*l)),{scale:l,width:u,height:d}},oO=(t,e,n)=>{const{scale:r,width:i,height:o}=v7(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},_7=async({blob:t})=>{const e=URL.createObjectURL(t),n=new Image;return new Promise(r=>{n.addEventListener("load",()=>{r({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(e)},{once:!0}),n.src=e})},b7=async({blob:t})=>{const e=URL.createObjectURL(t),n=document.createElement("video");return new Promise(r=>{n.addEventListener("canplay",()=>{n.pause(),r({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(e)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=e,n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n)})},y7=async t=>t.type.startsWith("video/")?b7({blob:t}):_7({blob:t}),sx=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,l=0;try{s=await createImageBitmap(t),{width:a,height:l}=s}catch{({source:s,naturalWidth:a,naturalHeight:l}=await y7(t))}r??=a,i??=l;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return oO(u,{width:a,height:l},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),iO(u,{format:e,quality:n})},w7=async t=>{const e=await t.text();try{const{optimize:n}=await uu("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},eu=ox("pdfjs-dist"),x7=`${eu}/build/pdf.min.mjs`,k7=`${eu}/build/pdf.worker.min.mjs`,S7={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${eu}/cmaps/`,iccUrl:`${eu}/iccs/`,standardFontDataUrl:`${eu}/standard_fonts/`,wasmUrl:`${eu}/wasm/`};let op;const E7=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!op)try{op=await import(x7),op.GlobalWorkerOptions.workerSrc=k7}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),l=a.getContext("2d");try{const d=await(await op.getDocument({...S7,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=oO(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:l,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return iO(a,{format:e,quality:n})},N_=new Set,Za=async(t,e=0)=>{const{file:n,blobURL:r,name:i,path:o}=t;if(r)return fetch(r).then(a=>a.blob());let s;if(n)s=n;else{if(N_.has(o)&&e<=25)return await Mt(200),Za(t,e+1);N_.add(o);const a=await oe(Dn)?.fetchBlob?.(t);if(!a)throw new Error("Failed to retrieve blob");s=new Blob([a],{type:sa.getType(i)??a.type})}return t.blobURL=URL.createObjectURL(s),N_.delete(o),s},ax=async t=>(t.blobURL||await Za(t),t.blobURL);let sp;const Fy=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(sp===void 0){const{databaseName:i}=oe(Dn)?.repository??{};sp=i?new as(i,"asset-thumbnails"):null}let r=await sp?.get(t.sha);if(!r){if(e)return;const i=await Za(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await E7(i,o):await sx(i,o),await sp?.set(t.sha,r)}return URL.createObjectURL(r)},Lf=(t,{pathOnly:e=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{const{publicPath:i,entryRelative:o,hasTemplateTags:s}=t.folder.collectionName===void 0?t.folder:zm(t.path).find(({collectionName:d})=>d!==void 0)??oe(fc);if(o)return e&&r&&yn(t.path).dirname===yn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:l=!1}={}}=oe(Rt);let u=s?t.path.replace(JI(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:Qt(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(l&&(u=XI(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},Nu=async({value:t,entry:e,collectionName:n,fileName:r,thumbnail:i=!1})=>{if(!t)return;if(/^(?:https?|data|blob):/.test(t))return t;const o=xx({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await Fy(o):await ax(o))??Lf(o)},yg={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},iv=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=oe(Dn)?.repository??{},i=await ax(t),o=Lf(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await c7(t,i,e)),{...s,publicURL:Lf(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await Uy(o):[]}},ld=st(!1),ts=st(),lx=st([]),$i=st([]),cx=st([]),sO=t=>oe(lx).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):mi(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),T7=()=>{try{return oe(ue)("index_file")}catch{return"Index File"}},Pi=t=>{const{index_file:e}=t;if(!Mf(t)||!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??T7(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},bs=(t,e)=>{const n=Pi(t);return n?e.slug===n.name:!1},C7=t=>{const e=Pi(t);return e?!ys(t.name).some(({slug:n})=>n===e.name):!1},A7=/{{(?:year|month|day|hour|minute|second)}}/,aa=t=>sO(Object.values(t.locales)[0].path).map(({collectionName:e})=>mi(e)).filter(e=>!!e),$7=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:l})=>a==="datetime"&&l===t):e.find(({widget:a})=>a==="datetime"),i=r?n[r.name]:void 0;if(!r||!i)return;const{format:o,picker_utc:s=!1}=r;return ql({date:(s?Xe.utc:Xe)(i,o).toDate(),timeZone:s?"UTC":void 0})},aO=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=oe(Rt)??{},{slug:s,path:a,content:l}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!l||!u)return;const h=bs(n,t),g=(h?Pi(n):void 0)?.fields??f;let m;if(!(A7.test(u)&&(m=$7({dateFieldName:d,fields:g,content:l}),!m)))try{const v=Jo(u,{type:"preview_path",collection:n,content:l,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},I7=(t,e)=>`${oe(Dn)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,ov=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),sv=t=>t.filter(e=>ov(e)),cd=(t,e)=>{const n=typeof t=="string"?mi(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},hh=t=>t.label||t.name,Ja=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],ux=(t,e)=>oe($i).find(n=>aa(n).some(r=>r.name===t&&Ja(r,n).some(i=>i.name===e))),cE=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=oe(Rt);return t==="_singletons"?Array.isArray(r)?sv(r).findIndex(i=>i.name===e):-1:Xa({collections:n}).find(({name:i})=>i===t)?.files?.findIndex(({name:i})=>i===e)??-1}return-1},lO=["file","image"],pc=[...lO,"relation","select"],cO=[...pc,"list","number"],uO=t=>t.multiline||t.dotAll||t.source.includes("[\\S\\s]")||t.source.includes("[\\s\\S]"),dO=t=>Zs(Object.fromEntries(Object.entries($o(t)).filter(([e])=>!e.split(".").pop()?.startsWith("__sc_")))),fO=t=>t.replace(/"/g,"'"),ml=t=>t.replace(/"/g,"&quot;"),wg=new Map,hO=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,P7=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,O7=new RegExp(`${hO.source}|${P7.source}`),pO={id:"image",label:"Image",fields:[{name:"src",label:"Source",widget:"image"},{name:"alt",label:"Alt Text",required:!1},{name:"title",label:"Title",required:!1}],pattern:hO,toBlock:t=>{const{src:e="",alt:n="",title:r=""}=t;return e?`![${n}](${e}${r?` "${fO(r)}"`:""})`:""},toPreview:t=>{const{src:e="",alt:n="",title:r=""}=t;return`<img src="${ml(e)}" alt="${ml(n)}" title="${ml(r)}">`}},N7={id:"linked-image",label:"Image",fields:[...pO.fields,{name:"link",label:"Link",required:!1}],pattern:O7,fromBlock:t=>{const{src:e,alt:n,title:r,src2:i,alt2:o,title2:s,link:a}=t.groups??{};return{src:(e||i||"").trim(),alt:(n||o||"").trim(),title:(r||s||"").trim(),link:(a||"").trim()}},toBlock:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=e?`![${n}](${e}${r?` "${fO(r)}"`:""})`:"";return o&&i?`[${o}](${i})`:o},toPreview:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=`<img src="${ml(e)}" alt="${ml(n)}" title="${ml(r)}">`;return i?`<a href="${ml(i)}">${o}</a>`:o}},gO=t=>{if(wg.has(t))return wg.get(t);const e={icon:"image",label:oe(ue)("editor_components.image"),fields:[{name:"src",label:oe(ue)("editor_components.src"),widget:"image"},{name:"alt",label:oe(ue)("editor_components.alt"),required:!1},{name:"title",label:oe(ue)("editor_components.title"),required:!1}]};return{image:{...pO,...e},"linked-image":{...N7,...e,fields:[...e.fields,{name:"link",label:oe(ue)("editor_components.link"),required:!1}]}}[t]};var L_,uE;function dE(){if(uE)return L_;uE=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(Se){return Se}),s||(s=function(Se){return Se}),l||(l=function(Se,Ue,Ie){return Se.apply(Ue,Ie)}),u||(u=function(Se,Ue){return new Se(...Ue)});const d=k(Array.prototype.forEach),f=k(Array.prototype.lastIndexOf),h=k(Array.prototype.pop),p=k(Array.prototype.push),g=k(Array.prototype.splice),m=k(String.prototype.toLowerCase),v=k(String.prototype.toString),b=k(String.prototype.match),y=k(String.prototype.replace),w=k(String.prototype.indexOf),E=k(String.prototype.trim),C=k(Object.prototype.hasOwnProperty),S=k(RegExp.prototype.test),A=x(TypeError);function k($e){return function(Se){Se instanceof RegExp&&(Se.lastIndex=0);for(var Ue=arguments.length,Ie=new Array(Ue>1?Ue-1:0),We=1;We<Ue;We++)Ie[We-1]=arguments[We];return l($e,Se,Ie)}}function x($e){return function(){for(var Se=arguments.length,Ue=new Array(Se),Ie=0;Ie<Se;Ie++)Ue[Ie]=arguments[Ie];return u($e,Ue)}}function $($e,Se){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e($e,null);let Ie=Se.length;for(;Ie--;){let We=Se[Ie];if(typeof We=="string"){const be=Ue(We);be!==We&&(n(Se)||(Se[Ie]=be),We=be)}$e[We]=!0}return $e}function I($e){for(let Se=0;Se<$e.length;Se++)C($e,Se)||($e[Se]=null);return $e}function O($e){const Se=a(null);for(const[Ue,Ie]of t($e))C($e,Ue)&&(Array.isArray(Ie)?Se[Ue]=I(Ie):Ie&&typeof Ie=="object"&&Ie.constructor===Object?Se[Ue]=O(Ie):Se[Ue]=Ie);return Se}function N($e,Se){for(;$e!==null;){const Ie=i($e,Se);if(Ie){if(Ie.get)return k(Ie.get);if(typeof Ie.value=="function")return k(Ie.value)}$e=r($e)}function Ue(){return null}return Ue}const L=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Z=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),J=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=o(["#text"]),Y=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),te=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),se=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ie=s(/<%[\w\W]*|[\w\W]*%>/gm),ee=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),de=s(/^aria-[\-\w]+$/),ge=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),he=s(/^(?:\w+script|data):/i),_e=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=s(/^html$/i),pe=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ye=Object.freeze({__proto__:null,ARIA_ATTR:de,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:pe,DATA_ATTR:ne,DOCTYPE_NAME:fe,ERB_EXPR:ie,IS_ALLOWED_URI:ge,IS_SCRIPT_OR_DATA:he,MUSTACHE_EXPR:se,TMPLIT_EXPR:ee});const ve={element:1,text:3,progressingInstruction:7,comment:8,document:9},Le=function(){return typeof window>"u"?null:window},Ae=function(Se,Ue){if(typeof Se!="object"||typeof Se.createPolicy!="function")return null;let Ie=null;const We="data-tt-policy-suffix";Ue&&Ue.hasAttribute(We)&&(Ie=Ue.getAttribute(We));const be="dompurify"+(Ie?"#"+Ie:"");try{return Se.createPolicy(be,{createHTML(ke){return ke},createScriptURL(ke){return ke}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}},Qe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function qe(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Le();const Se=ft=>qe(ft);if(Se.version="3.2.6",Se.removed=[],!$e||!$e.document||$e.document.nodeType!==ve.document||!$e.Element)return Se.isSupported=!1,Se;let{document:Ue}=$e;const Ie=Ue,We=Ie.currentScript,{DocumentFragment:be,HTMLTemplateElement:ke,Node:Oe,Element:et,NodeFilter:Ze,NamedNodeMap:Ee=$e.NamedNodeMap||$e.MozNamedAttrMap,HTMLFormElement:Me,DOMParser:Je,trustedTypes:pt}=$e,dt=et.prototype,yt=N(dt,"cloneNode"),Bt=N(dt,"remove"),kn=N(dt,"nextSibling"),pn=N(dt,"childNodes"),$t=N(dt,"parentNode");if(typeof ke=="function"){const ft=Ue.createElement("template");ft.content&&ft.content.ownerDocument&&(Ue=ft.content.ownerDocument)}let It,Kt="";const{implementation:qt,createNodeIterator:Xn,createDocumentFragment:In,getElementsByTagName:Sn}=Ue,{importNode:Pn}=Ie;let Pt=Qe();Se.isSupported=typeof t=="function"&&typeof $t=="function"&&qt&&qt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_t,ERB_EXPR:Vt,TMPLIT_EXPR:Mn,DATA_ATTR:zn,ARIA_ATTR:Or,IS_SCRIPT_OR_DATA:fr,ATTR_WHITESPACE:Un,CUSTOM_ELEMENT:Wn}=ye;let{IS_ALLOWED_URI:ir}=ye,on=null;const ti=$({},[...L,...j,...q,...Z,...H]);let En=null;const Sr=$({},[...Y,...G,...X,...te]);let sn=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_i=null,qr=null,Ki=!0,un=!0,vt=!1,Tt=!0,Tn=!1,hr=!0,Nr=!1,uo=!1,On=!1,Cn=!1,Er=!1,Vi=!1,Do=!0,Hr=!1;const Oi="user-content-";let fo=!0,Ad=!1,Tc={},Cc=null;const ok=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let sk=null;const ak=$({},["audio","video","img","source","image","track"]);let jv=null;const lk=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bh="http://www.w3.org/1998/Math/MathML",qh="http://www.w3.org/2000/svg",ks="http://www.w3.org/1999/xhtml";let Ac=ks,Bv=!1,qv=null;const GF=$({},[Bh,qh,ks],v);let Hh=$({},["mi","mo","mn","ms","mtext"]),Gh=$({},["annotation-xml"]);const WF=$({},["title","style","font","a","script"]);let $d=null;const KF=["application/xhtml+xml","text/html"],VF="text/html";let Tr=null,$c=null;const YF=Ue.createElement("form"),ck=function(ce){return ce instanceof RegExp||ce instanceof Function},Hv=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($c&&$c===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=O(ce),$d=KF.indexOf(ce.PARSER_MEDIA_TYPE)===-1?VF:ce.PARSER_MEDIA_TYPE,Tr=$d==="application/xhtml+xml"?v:m,on=C(ce,"ALLOWED_TAGS")?$({},ce.ALLOWED_TAGS,Tr):ti,En=C(ce,"ALLOWED_ATTR")?$({},ce.ALLOWED_ATTR,Tr):Sr,qv=C(ce,"ALLOWED_NAMESPACES")?$({},ce.ALLOWED_NAMESPACES,v):GF,jv=C(ce,"ADD_URI_SAFE_ATTR")?$(O(lk),ce.ADD_URI_SAFE_ATTR,Tr):lk,sk=C(ce,"ADD_DATA_URI_TAGS")?$(O(ak),ce.ADD_DATA_URI_TAGS,Tr):ak,Cc=C(ce,"FORBID_CONTENTS")?$({},ce.FORBID_CONTENTS,Tr):ok,_i=C(ce,"FORBID_TAGS")?$({},ce.FORBID_TAGS,Tr):O({}),qr=C(ce,"FORBID_ATTR")?$({},ce.FORBID_ATTR,Tr):O({}),Tc=C(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Ki=ce.ALLOW_ARIA_ATTR!==!1,un=ce.ALLOW_DATA_ATTR!==!1,vt=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Tt=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Tn=ce.SAFE_FOR_TEMPLATES||!1,hr=ce.SAFE_FOR_XML!==!1,Nr=ce.WHOLE_DOCUMENT||!1,Cn=ce.RETURN_DOM||!1,Er=ce.RETURN_DOM_FRAGMENT||!1,Vi=ce.RETURN_TRUSTED_TYPE||!1,On=ce.FORCE_BODY||!1,Do=ce.SANITIZE_DOM!==!1,Hr=ce.SANITIZE_NAMED_PROPS||!1,fo=ce.KEEP_CONTENT!==!1,Ad=ce.IN_PLACE||!1,ir=ce.ALLOWED_URI_REGEXP||ge,Ac=ce.NAMESPACE||ks,Hh=ce.MATHML_TEXT_INTEGRATION_POINTS||Hh,Gh=ce.HTML_INTEGRATION_POINTS||Gh,sn=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&ck(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(sn.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&ck(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(sn.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(sn.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Tn&&(un=!1),Er&&(Cn=!0),Tc&&(on=$({},H),En=[],Tc.html===!0&&($(on,L),$(En,Y)),Tc.svg===!0&&($(on,j),$(En,G),$(En,te)),Tc.svgFilters===!0&&($(on,q),$(En,G),$(En,te)),Tc.mathMl===!0&&($(on,Z),$(En,X),$(En,te))),ce.ADD_TAGS&&(on===ti&&(on=O(on)),$(on,ce.ADD_TAGS,Tr)),ce.ADD_ATTR&&(En===Sr&&(En=O(En)),$(En,ce.ADD_ATTR,Tr)),ce.ADD_URI_SAFE_ATTR&&$(jv,ce.ADD_URI_SAFE_ATTR,Tr),ce.FORBID_CONTENTS&&(Cc===ok&&(Cc=O(Cc)),$(Cc,ce.FORBID_CONTENTS,Tr)),fo&&(on["#text"]=!0),Nr&&$(on,["html","head","body"]),on.table&&($(on,["tbody"]),delete _i.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');It=ce.TRUSTED_TYPES_POLICY,Kt=It.createHTML("")}else It===void 0&&(It=Ae(pt,We)),It!==null&&typeof Kt=="string"&&(Kt=It.createHTML(""));o&&o(ce),$c=ce}},uk=$({},[...j,...q,...V]),dk=$({},[...Z,...J]),ZF=function(ce){let Be=$t(ce);(!Be||!Be.tagName)&&(Be={namespaceURI:Ac,tagName:"template"});const ut=m(ce.tagName),jn=m(Be.tagName);return qv[ce.namespaceURI]?ce.namespaceURI===qh?Be.namespaceURI===ks?ut==="svg":Be.namespaceURI===Bh?ut==="svg"&&(jn==="annotation-xml"||Hh[jn]):!!uk[ut]:ce.namespaceURI===Bh?Be.namespaceURI===ks?ut==="math":Be.namespaceURI===qh?ut==="math"&&Gh[jn]:!!dk[ut]:ce.namespaceURI===ks?Be.namespaceURI===qh&&!Gh[jn]||Be.namespaceURI===Bh&&!Hh[jn]?!1:!dk[ut]&&(WF[ut]||!uk[ut]):!!($d==="application/xhtml+xml"&&qv[ce.namespaceURI]):!1},Mo=function(ce){p(Se.removed,{element:ce});try{$t(ce).removeChild(ce)}catch{Bt(ce)}},Ic=function(ce,Be){try{p(Se.removed,{attribute:Be.getAttributeNode(ce),from:Be})}catch{p(Se.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ce),ce==="is")if(Cn||Er)try{Mo(Be)}catch{}else try{Be.setAttribute(ce,"")}catch{}},fk=function(ce){let Be=null,ut=null;if(On)ce="<remove></remove>"+ce;else{const yr=b(ce,/^[\r\n\t ]+/);ut=yr&&yr[0]}$d==="application/xhtml+xml"&&Ac===ks&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const jn=It?It.createHTML(ce):ce;if(Ac===ks)try{Be=new Je().parseFromString(jn,$d)}catch{}if(!Be||!Be.documentElement){Be=qt.createDocument(Ac,"template",null);try{Be.documentElement.innerHTML=Bv?Kt:jn}catch{}}const Gr=Be.body||Be.documentElement;return ce&&ut&&Gr.insertBefore(Ue.createTextNode(ut),Gr.childNodes[0]||null),Ac===ks?Sn.call(Be,Nr?"html":"body")[0]:Nr?Be.documentElement:Gr},hk=function(ce){return Xn.call(ce.ownerDocument||ce,ce,Ze.SHOW_ELEMENT|Ze.SHOW_COMMENT|Ze.SHOW_TEXT|Ze.SHOW_PROCESSING_INSTRUCTION|Ze.SHOW_CDATA_SECTION,null)},Gv=function(ce){return ce instanceof Me&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof Ee)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},pk=function(ce){return typeof Oe=="function"&&ce instanceof Oe};function Ss(ft,ce,Be){d(ft,ut=>{ut.call(Se,ce,Be,$c)})}const gk=function(ce){let Be=null;if(Ss(Pt.beforeSanitizeElements,ce,null),Gv(ce))return Mo(ce),!0;const ut=Tr(ce.nodeName);if(Ss(Pt.uponSanitizeElement,ce,{tagName:ut,allowedTags:on}),hr&&ce.hasChildNodes()&&!pk(ce.firstElementChild)&&S(/<[/\w!]/g,ce.innerHTML)&&S(/<[/\w!]/g,ce.textContent)||ce.nodeType===ve.progressingInstruction||hr&&ce.nodeType===ve.comment&&S(/<[/\w]/g,ce.data))return Mo(ce),!0;if(!on[ut]||_i[ut]){if(!_i[ut]&&vk(ut)&&(sn.tagNameCheck instanceof RegExp&&S(sn.tagNameCheck,ut)||sn.tagNameCheck instanceof Function&&sn.tagNameCheck(ut)))return!1;if(fo&&!Cc[ut]){const jn=$t(ce)||ce.parentNode,Gr=pn(ce)||ce.childNodes;if(Gr&&jn){const yr=Gr.length;for(let bi=yr-1;bi>=0;--bi){const Es=yt(Gr[bi],!0);Es.__removalCount=(ce.__removalCount||0)+1,jn.insertBefore(Es,kn(ce))}}}return Mo(ce),!0}return ce instanceof et&&!ZF(ce)||(ut==="noscript"||ut==="noembed"||ut==="noframes")&&S(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Mo(ce),!0):(Tn&&ce.nodeType===ve.text&&(Be=ce.textContent,d([_t,Vt,Mn],jn=>{Be=y(Be,jn," ")}),ce.textContent!==Be&&(p(Se.removed,{element:ce.cloneNode()}),ce.textContent=Be)),Ss(Pt.afterSanitizeElements,ce,null),!1)},mk=function(ce,Be,ut){if(Do&&(Be==="id"||Be==="name")&&(ut in Ue||ut in YF))return!1;if(!(un&&!qr[Be]&&S(zn,Be))){if(!(Ki&&S(Or,Be))){if(!En[Be]||qr[Be]){if(!(vk(ce)&&(sn.tagNameCheck instanceof RegExp&&S(sn.tagNameCheck,ce)||sn.tagNameCheck instanceof Function&&sn.tagNameCheck(ce))&&(sn.attributeNameCheck instanceof RegExp&&S(sn.attributeNameCheck,Be)||sn.attributeNameCheck instanceof Function&&sn.attributeNameCheck(Be))||Be==="is"&&sn.allowCustomizedBuiltInElements&&(sn.tagNameCheck instanceof RegExp&&S(sn.tagNameCheck,ut)||sn.tagNameCheck instanceof Function&&sn.tagNameCheck(ut))))return!1}else if(!jv[Be]){if(!S(ir,y(ut,Un,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ce!=="script"&&w(ut,"data:")===0&&sk[ce])){if(!(vt&&!S(fr,y(ut,Un,"")))){if(ut)return!1}}}}}}return!0},vk=function(ce){return ce!=="annotation-xml"&&b(ce,Wn)},_k=function(ce){Ss(Pt.beforeSanitizeAttributes,ce,null);const{attributes:Be}=ce;if(!Be||Gv(ce))return;const ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:En,forceKeepAttr:void 0};let jn=Be.length;for(;jn--;){const Gr=Be[jn],{name:yr,namespaceURI:bi,value:Es}=Gr,Id=Tr(yr),Wv=Es;let Wr=yr==="value"?Wv:E(Wv);if(ut.attrName=Id,ut.attrValue=Wr,ut.keepAttr=!0,ut.forceKeepAttr=void 0,Ss(Pt.uponSanitizeAttribute,ce,ut),Wr=ut.attrValue,Hr&&(Id==="id"||Id==="name")&&(Ic(yr,ce),Wr=Oi+Wr),hr&&S(/((--!?|])>)|<\/(style|title)/i,Wr)){Ic(yr,ce);continue}if(ut.forceKeepAttr)continue;if(!ut.keepAttr){Ic(yr,ce);continue}if(!Tt&&S(/\/>/i,Wr)){Ic(yr,ce);continue}Tn&&d([_t,Vt,Mn],yk=>{Wr=y(Wr,yk," ")});const bk=Tr(ce.nodeName);if(!mk(bk,Id,Wr)){Ic(yr,ce);continue}if(It&&typeof pt=="object"&&typeof pt.getAttributeType=="function"&&!bi)switch(pt.getAttributeType(bk,Id)){case"TrustedHTML":{Wr=It.createHTML(Wr);break}case"TrustedScriptURL":{Wr=It.createScriptURL(Wr);break}}if(Wr!==Wv)try{bi?ce.setAttributeNS(bi,yr,Wr):ce.setAttribute(yr,Wr),Gv(ce)?Mo(ce):h(Se.removed)}catch{Ic(yr,ce)}}Ss(Pt.afterSanitizeAttributes,ce,null)},JF=function ft(ce){let Be=null;const ut=hk(ce);for(Ss(Pt.beforeSanitizeShadowDOM,ce,null);Be=ut.nextNode();)Ss(Pt.uponSanitizeShadowNode,Be,null),gk(Be),_k(Be),Be.content instanceof be&&ft(Be.content);Ss(Pt.afterSanitizeShadowDOM,ce,null)};return Se.sanitize=function(ft){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,ut=null,jn=null,Gr=null;if(Bv=!ft,Bv&&(ft="<!-->"),typeof ft!="string"&&!pk(ft))if(typeof ft.toString=="function"){if(ft=ft.toString(),typeof ft!="string")throw A("dirty is not a string, aborting")}else throw A("toString is not a function");if(!Se.isSupported)return ft;if(uo||Hv(ce),Se.removed=[],typeof ft=="string"&&(Ad=!1),Ad){if(ft.nodeName){const Es=Tr(ft.nodeName);if(!on[Es]||_i[Es])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(ft instanceof Oe)Be=fk("<!---->"),ut=Be.ownerDocument.importNode(ft,!0),ut.nodeType===ve.element&&ut.nodeName==="BODY"||ut.nodeName==="HTML"?Be=ut:Be.appendChild(ut);else{if(!Cn&&!Tn&&!Nr&&ft.indexOf("<")===-1)return It&&Vi?It.createHTML(ft):ft;if(Be=fk(ft),!Be)return Cn?null:Vi?Kt:""}Be&&On&&Mo(Be.firstChild);const yr=hk(Ad?ft:Be);for(;jn=yr.nextNode();)gk(jn),_k(jn),jn.content instanceof be&&JF(jn.content);if(Ad)return ft;if(Cn){if(Er)for(Gr=In.call(Be.ownerDocument);Be.firstChild;)Gr.appendChild(Be.firstChild);else Gr=Be;return(En.shadowroot||En.shadowrootmode)&&(Gr=Pn.call(Ie,Gr,!0)),Gr}let bi=Nr?Be.outerHTML:Be.innerHTML;return Nr&&on["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&S(fe,Be.ownerDocument.doctype.name)&&(bi="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
150
+ `,_g=4,ko=4,Gc=0,Va=_g,Lr=_g+ko,Sy="XML:com.adobe.xmp\0",Q0="tEXt",Wl="iTXt",Xm="zTXt",hP="pHYs",pP="tIME",F8="eXIf",D8="iCCP";function M8(t){return!!t&&Et(t,0,ky.length)===ky}function z8(t,e){const r={hasAppMarkers:!1};let i=ky.length;for(;i+_g+ko<=t.byteLength;){if(U8(t,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+Lr;else if(j8(t,i)){const o=W8(t,i);o!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:o,length:t.getUint32(i+Gc)-(o-(i+Lr))}])}else if(B8(t,i,e)){r.hasAppMarkers=!0;const o=Et(t,i+Va,ko);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(i+Gc),type:o,offset:i+Lr})}else if(q8(t,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+Lr;else if(e&&H8(t,i)){r.hasAppMarkers=!0;const o=t.getUint32(i+Gc),s=i+Lr,{profileName:a,compressionMethod:l,compressedProfileOffset:u}=K8(t,s);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:o-(u-s),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:l})}else G8(t,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+Gc));i+=t.getUint32(i+Gc)+_g+ko+4}return r}function U8(t,e){return Et(t,e+Va,ko)==="IHDR"}function j8(t,e){return Et(t,e+Va,ko)===Wl&&Et(t,e+Lr,Sy.length)===Sy}function B8(t,e,n){const r=Et(t,e+Va,ko);return r===Q0||r===Wl||r===Xm&&n}function q8(t,e){return Et(t,e+Va,ko)===F8}function H8(t,e){return Et(t,e+Va,ko)===D8}function G8(t,e){const n=[hP,pP],r=Et(t,e+Va,ko);return n.includes(r)}function W8(t,e){e+=Lr+Sy.length+1+1;let i=0;for(;i<2&&e<t.byteLength;)t.getUint8(e)===0&&i++,e++;if(!(i<2))return e}function K8(t,e){const i=Hc(t,e);e+=i.length+1;const o=t.getUint8(e);return e+=1,{profileName:i,compressionMethod:o,compressedProfileOffset:e}}function V8(t,e){return t.getUint32(e+4)}function Y8(t,e,n,r){const{offsets:o,sizes:s}=Z8(e,n+3),a=t.getUint8(o.offsetSize)>>4;s.item.extent.extentOffset=a;const l=t.getUint8(o.lengthSize)&15;s.item.extent.extentLength=l;const u=t.getUint8(o.baseOffsetSize)>>4;s.item.baseOffset=u;const d=J8(t,o.indexSize,e);s.item.extent.extentIndex=d!==void 0?d:0;const f=X8(t,o.itemCount,e);return{type:"iloc",items:Q8(t,e,o,s,a,l,d,f),length:r}}function Z8(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function J8(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function X8(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function Q8(t,e,n,r,i,o,s,a){if(a===void 0)return[];const l=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=e5(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Mp(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const p={};p.extentIndex=t5(t,e,u,s),u+=r.item.extent.extentIndex,p.extentOffset=Mp(t,u,i),u+=r.item.extent.extentOffset,p.extentLength=Mp(t,u,o),u+=r.item.extent.extentLength,f.extents.push(p)}l.push(f)}return l}function e5(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function t5(t,e,n,r){if((e===1||e===2)&&r>0)return Mp(t,n,r)}function Mp(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),V8(t,e)):0}const n5=1718909296,r5=1768977008,i5=1835365473,o5=1768714083,s5=1768517222,a5=1768842853,l5=1768973167,c5=1668246642,gP=1165519206,ex=1835625829,u5=1970432288;function Qm(t,e){const{length:o,contentOffset:s}=d5(t,e);if(o<8)return;const a=t.getUint32(e+4);if(a===n5)return x5(t,s,o);if(a===r5)return k5(t,e,s,o);if(a===l5)return S5(t,e,s,o);if(a===c5)return E5(t,s,o);const l=t.getUint8(s);return a===i5?C5(t,e,s+1,o):a===o5?Y8(t,l,s+1,o):a===s5?A5(t,e,l,s+1,o):a===a5?I5(t,e,l,s+1,o):{type:void 0,length:o}}function d5(t,e){const s=t.getUint32(e);return f5(s)?{length:t.byteLength-e,contentOffset:e+4+4}:h5(s)&&p5(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:s,contentOffset:e+4+4}}function f5(t){return t===0}function h5(t){return t===1}function p5(t,e){return t.getUint32(e+8)===0}function mP(t){{const e={},n=g5(t);return n?(e.tiffHeaderOffset=m5(t,n),e.xmpChunks=b5(n),e.iccChunks=w5(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function g5(t){let r=0;for(;r+4+4<=t.byteLength;){const i=Qm(t,r);if(i===void 0)break;if(i.type==="meta")return i;r+=i.length}}function m5(t,e){try{const n=v5(e).itemId,r=Ey(e,n),i=r.baseOffset+r.extents[0].extentOffset;return _5(t,i)}catch{return}}function v5(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===gP)}function Ey(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function _5(t,e){return e+4+t.getUint32(e)}function b5(t){try{const e=y5(t).itemId,n=Ey(t,e),r=Ey(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function y5(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===ex&&e.contentType==="application/rdf+xml")}function w5(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function x5(t,e,n){return{type:"ftyp",majorBrand:Et(t,e,4),length:n}}function k5(t,e,n,r){return{type:"iprp",subBoxes:ev(t,n,r-(n-e)),length:r}}function S5(t,e,n,r){return{type:"ipco",properties:ev(t,n,r-(n-e)),length:r}}function E5(t,e,n){return{type:"colr",icc:T5(t,e),length:n}}function T5(t,e){const r=Et(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function C5(t,e,n,r){return{type:"meta",subBoxes:ev(t,n+3,r-(n+3-e)),length:r}}function ev(t,e,n){const r=[gP,ex],i=[];let o=e;for(;o<e+n;){const s=Qm(t,o);if(s===void 0)break;s.type!==void 0&&(s.itemType===void 0||r.indexOf(s.itemType)!==-1)&&i.push(s),o+=s.length}return i}function A5(t,e,n,r,i){const{offsets:o}=$5(n,r);return{type:"iinf",itemInfos:ev(t,o.itemInfos,i-(o.itemInfos-e)),length:i}}function $5(t,e){const r={entryCount:e+3},i={};return t===0?i.entryCount=2:i.entryCount=4,r.itemInfos=r.entryCount+i.entryCount,{offsets:r}}function I5(t,e,n,r,i){r+=3;const s={type:"infe",length:i};return(n===0||n===1)&&(s.itemId=t.getUint16(r),r+=2,s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemName=Hc(t,r),r+=s.itemName.length+1),n>=2&&(n===2?(s.itemId=t.getUint16(r),r+=2):n===3&&(s.itemId=t.getUint32(r),r+=4),s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemType=t.getUint32(r),r+=4,s.itemName=Hc(t,r),r+=s.itemName.length+1,s.itemType===ex?(s.contentType=Hc(t,r),r+=s.contentType.length+1,e+i>r&&(s.contentEncoding=Hc(t,r),r+=s.contentEncoding.length+1)):s.itemType===u5&&(s.itemUri=Hc(t,r),r+=s.itemUri.length+1)),s}const LS={isHeicFile:P5,findHeicOffsets:O5};function P5(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Qm(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function O5(t){return mP(t)}const RS={isAvifFile:N5,findAvifOffsets:L5};function N5(t){if(!t)return!1;try{const e=Qm(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function L5(t){return mP(t)}const FS={isWebpFile:R5,findOffsets:F5};function R5(t){const n="RIFF",i="WEBP";return!!t&&Et(t,0,n.length)===n&&Et(t,8,i.length)===i}function F5(t){const r="Exif\0\0";let o=12,s=!1,a,l,u,d;for(;o+8<t.byteLength;){const f=Et(t,o,4),h=t.getUint32(o+4,!0);f==="EXIF"?(s=!0,Et(t,o+8,r.length)===r?a=o+8+r.length:a=o+8):f==="XMP "?(s=!0,l=[{dataOffset:o+8,length:h}]):f==="ICCP"?(s=!0,u=[{offset:o+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(s=!0,d=o+8),o+=8+(h%2===0?h:h+1)}return{hasAppMarkers:s,tiffHeaderOffset:a,xmpChunks:l,iccChunks:u,vp8xChunkOffset:d}}const DS={isGifFile:z5,findOffsets:U5},D5=6,M5=["GIF87a","GIF89a"];function z5(t){return!!t&&M5.includes(Et(t,0,D5))}function U5(){return{gifHeaderOffset:0}}const MS={isXMLFile:j5,findOffsets:B5},vP=0,zS="<?xpacket begin";function j5(t){return!!t&&Et(t,vP,zS.length)===zS}function B5(t){const e=[];return e.push({dataOffset:vP,length:t.byteLength}),{xmpChunks:e}}const q5={parseAppMarkers:H5};function H5(t,e){if(wS.isTiffFile(t))return ua(wS.findTiffOffsets(),"tiff","TIFF");if(xS.isJpegFile(t))return ua(xS.findJpegOffsets(t),"jpeg","JPEG");if(NS.isPngFile(t))return ua(NS.findPngOffsets(t,e),"png","PNG");if(LS.isHeicFile(t))return ua(LS.findHeicOffsets(t),"heic","HEIC");if(RS.isAvifFile(t))return ua(RS.findAvifOffsets(t),"avif","AVIF");if(FS.isWebpFile(t))return ua(FS.findOffsets(t),"webp","WebP");if(DS.isGifFile(t))return ua(DS.findOffsets(t),"gif","GIF");if(MS.isXMLFile(t))return ua(MS.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function ua(t,e,n){return At({},t,{fileType:{value:e,description:n}})}const wt={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${Number(t[0]/t[1]).toFixed(1)}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":t===4?"millimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},FocalLengthIn35mmFilm(t){return t===0?"Unknown":t+" mm"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},_P={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:wt.XResolution},283:{name:"YResolution",description:wt.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:wt.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:{name:"XPTitle",description:zd},40092:{name:"XPComment",description:zd},40093:{name:"XPAuthor",description:zd},40094:{name:"XPKeywords",description:zd},40095:{name:"XPSubject",description:zd},42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:wt.LightSource},50779:{name:"CalibrationIlluminant2",description:wt.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function zd(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const G5={33434:{name:"ExposureTime",description:wt.ExposureTime},33437:{name:"FNumber",description:wt.FNumber},34850:{name:"ExposureProgram",description:wt.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>pr(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:wt.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:wt.ShutterSpeedValue},37378:{name:"ApertureValue",description:wt.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:wt.MeteringMode},37384:{name:"LightSource",description:wt.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:wt.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:by},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:wt.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:wt.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:wt.CustomRendered},41986:{name:"ExposureMode",description:wt.ExposureMode},41987:{name:"WhiteBalance",description:wt.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:wt.FocalLengthIn35mmFilm},41990:{name:"SceneCaptureType",description:wt.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:wt.Contrast},41993:{name:"Saturation",description:wt.Saturation},41994:{name:"Sharpness",description:wt.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const i=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(i.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},W5={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:vg},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:vg},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:by},28:{name:"GPSAreaInformation",description:by},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},K5={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>pr(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},V5={45056:{name:"MPFVersion",description:t=>pr(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},Y5={4:{name:"ShotInfo",description:t=>t}},Z5={0:{name:"PentaxVersion",description:t=>t.join(".")},5:"PentaxModelID",555:"LevelInfo"},US=At({},_P,G5),tx="0th",bP="1st",yP="exif",wP="gps",xP="interoperability",kP="mpf",SP="canon",nx="pentax",da={[tx]:US,[bP]:_P,[yP]:US,[wP]:W5,[xP]:K5,[kP]:V5,[SP]:Y5,[nx]:Z5},EP={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},Ty={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Ke={getAsciiValue:J5,getByteAt:TP,getAsciiAt:X5,getShortAt:Q5,getLongAt:bg,getRationalAt:eq,getUndefinedAt:tq,getSlongAt:Cy,getSrationalAt:nq,getIfdPointerAt:rq,typeSizes:EP,tagTypes:Ty,getTypeSize:iq};function J5(t){return t.map(e=>String.fromCharCode(e))}function TP(t,e){return t.getUint8(e)}function X5(t,e){return t.getUint8(e)}function Q5(t,e,n){return t.getUint16(e,n===cs.LITTLE_ENDIAN)}function bg(t,e,n){return t.getUint32(e,n===cs.LITTLE_ENDIAN)}function eq(t,e,n){return[bg(t,e,n),bg(t,e+4,n)]}function tq(t,e){return TP(t,e)}function Cy(t,e,n){return t.getInt32(e,n===cs.LITTLE_ENDIAN)}function nq(t,e,n){return[Cy(t,e,n),Cy(t,e+4,n)]}function rq(t,e,n){return bg(t,e,n)}function iq(t){if(Ty[t]===void 0)throw new Error("No such type found.");return EP[Ty[t]]}const oq={1:Ke.getByteAt,2:Ke.getAsciiAt,3:Ke.getShortAt,4:Ke.getLongAt,5:Ke.getRationalAt,7:Ke.getUndefinedAt,9:Ke.getSlongAt,10:Ke.getSrationalAt,13:Ke.getIfdPointerAt};function CP(t,e,n){return e+Ke.getLongAt(t,e+4,n)}function Ya(t,e,n,r,i,o){const s=Ke.getTypeSize("SHORT"),a=12,l={},u=sq(t,r,i);r+=s;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=aq(t,e,n,r,i,o);f!==void 0&&(l[f.name]={id:f.id,value:f.value,description:f.description},(f.name==="MakerNote"||e===nx&&f.name==="LevelInfo")&&(l[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-Ke.getTypeSize("LONG")){const d=Ke.getLongAt(t,r,i);d!==0&&e===tx&&(l.Thumbnail=Ya(t,bP,n,n+d,i,o))}return l}function sq(t,e,n){return e+Ke.getTypeSize("SHORT")<=t.byteLength?Ke.getShortAt(t,e,n):0}function aq(t,e,n,r,i,o){const a=Ke.getTypeSize("SHORT"),l=a+Ke.getTypeSize("SHORT"),u=l+Ke.getTypeSize("LONG"),d=Ke.getShortAt(t,r,i),f=Ke.getShortAt(t,r+a,i),h=Ke.getLongAt(t,r+l,i);let p,g;if(Ke.typeSizes[f]===void 0||!o&&da[e][d]===void 0)return;if(lq(f,h))g=r+u,p=jS(t,g,f,h,i);else if(g=Ke.getLongAt(t,r+u,i),cq(t,n,g,f,h)){const b=d===33723;p=jS(t,n+g,f,h,i,b)}else p="<faulty value>";f===Ke.tagTypes.ASCII&&(p=uq(p),p=dq(p));let m=`undefined-${d}`,v=p;if(da[e][d]!==void 0)if(da[e][d].name!==void 0&&da[e][d].description!==void 0){m=da[e][d].name;try{v=da[e][d].description(p)}catch{v=BS(p)}}else f===Ke.tagTypes.RATIONAL||f===Ke.tagTypes.SRATIONAL?(m=da[e][d],v=""+p[0]/p[1]):(m=da[e][d],v=BS(p));return{id:d,name:m,value:p,description:v,__offset:g}}function lq(t,e){return Ke.typeSizes[t]*e<=Ke.getTypeSize("LONG")}function jS(t,e,n,r,i,o=!1){let s=[];o&&(r=r*Ke.typeSizes[n],n=Ke.tagTypes.BYTE);for(let a=0;a<r;a++)s.push(oq[n](t,e,i)),e+=Ke.typeSizes[n];return n===Ke.tagTypes.ASCII?s=Ke.getAsciiValue(s):s.length===1&&(s=s[0]),s}function cq(t,e,n,r,i){return e+n+Ke.typeSizes[r]*i<=t.byteLength}function uq(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function dq(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function BS(t){return t instanceof Array?t.join(", "):t}const qS="Exif IFD Pointer",HS="GPS Info IFD Pointer",GS="Interoperability IFD Pointer",AP={read:fq};function fq(t,e,n){const r=cs.getByteOrder(t,e);let i=hq(t,e,r,n);return i=pq(i,t,e,r,n),i=gq(i,t,e,r,n),i=mq(i,t,e,r,n),{tags:i,byteOrder:r}}function hq(t,e,n,r){return Ya(t,tx,e,CP(t,e,n),n,r)}function pq(t,e,n,r,i){return t[qS]!==void 0?At(t,Ya(e,yP,n,n+t[qS].value,r,i)):t}function gq(t,e,n,r,i){return t[HS]!==void 0?At(t,Ya(e,wP,n,n+t[HS].value,r,i)):t}function mq(t,e,n,r,i){return t[GS]!==void 0?At(t,Ya(e,xP,n,n+t[GS].value,r,i)):t}const vq={read:_q},Wc=16;function _q(t,e,n){const r=cs.getByteOrder(t,e),i=Ya(t,kP,e,CP(t,e,r),r,n);return bq(t,e,i,r)}function bq(t,e,n,r){if(!n.MPEntry)return n;const i=[];for(let o=0;o<Math.ceil(n.MPEntry.value.length/Wc);o++){i[o]={};const s=ef(n.MPEntry.value,o*Wc,Ke.getTypeSize("LONG"),r);i[o].ImageFlags=yq(s),i[o].ImageFormat=wq(s),i[o].ImageType=xq(s);const a=ef(n.MPEntry.value,o*Wc+4,Ke.getTypeSize("LONG"),r);i[o].ImageSize={value:a,description:""+a};const l=kq(o,n.MPEntry,r,e);i[o].ImageOffset={value:l,description:""+l};const u=ef(n.MPEntry.value,o*Wc+12,Ke.getTypeSize("SHORT"),r);i[o].DependentImage1EntryNumber={value:u,description:""+u};const d=ef(n.MPEntry.value,o*Wc+14,Ke.getTypeSize("SHORT"),r);i[o].DependentImage2EntryNumber={value:d,description:""+d},i[o].image=t.buffer.slice(l,l+a),rP(i[o],"base64",function(){return iP(this.image)})}return n.Images=i,n}function ef(t,e,n,r){if(r===cs.LITTLE_ENDIAN){let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*s;return o}let i=0;for(let o=0;o<n;o++)i+=t[e+o]<<8*(n-1-o);return i}function yq(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function wq(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function xq(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function kq(t,e,n,r){return Sq(t)?0:ef(e.value,t*Wc+8,Ke.getTypeSize("LONG"),n)+r}function Sq(t){return t===0}const Eq={read:Tq};function Tq(t,e){const n=Cq(t,e),r=Pq(t,e,n);return{"Bits Per Sample":Aq(t,e,n),"Image Height":$q(t,e,n),"Image Width":Iq(t,e,n),"Color Components":r,Subsampling:r&&Oq(t,e,r.value,n)}}function Cq(t,e){return Ke.getShortAt(t,e)}function Aq(t,e,n){if(3>n)return;const o=Ke.getByteAt(t,e+2);return{value:o,description:""+o}}function $q(t,e,n){if(5>n)return;const o=Ke.getShortAt(t,e+3);return{value:o,description:`${o}px`}}function Iq(t,e,n){if(7>n)return;const o=Ke.getShortAt(t,e+5);return{value:o,description:`${o}px`}}function Pq(t,e,n){if(8>n)return;const o=Ke.getByteAt(t,e+7);return{value:o,description:""+o}}function Oq(t,e,n,r){if(8+3*n>r)return;const s=[];for(let a=0;a<n;a++){const l=e+8+a*3;s.push([Ke.getByteAt(t,l),Ke.getByteAt(t,l+1),Ke.getByteAt(t,l+2)])}return{value:s,description:s.length>1?Nq(s)+Lq(s):""}}function Nq(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function Lq(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const Rq={read:Fq};function Fq(t,e){const n=Dq(t,e),r=qq(t,e,n),i=Hq(t,e,n),o={"JFIF Version":Mq(t,e,n),"Resolution Unit":zq(t,e,n),XResolution:jq(t,e,n),YResolution:Bq(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const s=Gq(t,e,3*r.value*i.value,n);s&&(o["JFIF Thumbnail"]=s)}for(const s in o)o[s]===void 0&&delete o[s];return o}function Dq(t,e){return Ke.getShortAt(t,e)}function Mq(t,e,n){if(9>n)return;const o=Ke.getByteAt(t,e+7),s=Ke.getByteAt(t,e+7+1);return{value:o*256+s,description:o+"."+s}}function zq(t,e,n){if(10>n)return;const o=Ke.getByteAt(t,e+9);return{value:o,description:Uq(o)}}function Uq(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function jq(t,e,n){if(12>n)return;const o=Ke.getShortAt(t,e+10);return{value:o,description:""+o}}function Bq(t,e,n){if(14>n)return;const o=Ke.getShortAt(t,e+12);return{value:o,description:""+o}}function qq(t,e,n){if(15>n)return;const o=Ke.getByteAt(t,e+14);return{value:o,description:`${o}px`}}function Hq(t,e,n){if(16>n)return;const o=Ke.getByteAt(t,e+15);return{value:o,description:`${o}px`}}function Gq(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const ka={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:k_},336:{name:"Time Sent",description:S_},346:{name:"Coded Character Set",description:WS,encoding_name:WS},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>pr(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=pr(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=pr(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:k_},572:{name:"Time Created",description:S_},574:{name:"Digital Creation Date",description:k_},575:{name:"Digital Creation Time",description:S_},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=pr(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=pr(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=pr(t),n=e.charAt(0),r=e.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(pr(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(pr(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=pr(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return pr(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=pr(t);if(e["ObjectData Preview File Format"]){const i=pr(e["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function k_(t){const e=pr(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function S_(t){const e=pr(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function WS(t){const e=pr(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const Wq={get:Kq};function Kq(){if(typeof TextDecoder<"u")return TextDecoder}const Vq=5,$P={decode:Yq,TAG_HEADER_SIZE:Vq};function Yq(t,e){const n=Wq.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(i=>String.fromCharCode(i)).join("");return Zq(r)}function Zq(t){try{return decodeURIComponent(escape(t))}catch{return t}}const Jq=943868237,tf=4,zp=2,Xq=1,Qq=2,IP=4,eH=tf+zp+Qq+IP,tH=1028,PP=5,Ay={read:nH};function nH(t,e,n){try{if(Array.isArray(t))return KS(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:i}=rH(t,e);return KS(t,r,i,n)}catch{return{}}}function rH(t,e){for(;e+eH<=t.byteLength;){const n=iH(t,e);if(oH(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+sH(n)}throw new Error("No IPTC NAA resource block.")}function iH(t,e){if(t.getUint32(e,!1)!==Jq)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+tf+zp),r=(n%2===0?n+1:n)+Xq;return{headerSize:tf+zp+r+IP,type:t.getUint16(e+tf),size:t.getUint32(e+tf+zp+r)}}function oH(t){return t.type===tH}function sH(t){return t.size%2!==0?1:0}function KS(t,e,n,r){const i={};let o;const s=n+e.size;for(;n<s&&n<t.byteLength;){const{tag:a,tagSize:l}=aH(t,n,i,o,r);if(a===null)break;a&&("encoding"in a&&(o=a.encoding),i[a.name]===void 0||a.repeatable===void 0?i[a.name]={id:a.id,value:a.value,description:a.description}:(i[a.name]instanceof Array||(i[a.name]=[{id:i[a.name].id,value:i[a.name].value,description:i[a.name].description}]),i[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=PP+l}return i}function aH(t,e,n,r,i){if(lH(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),l=t.getUint16(e+3);if(!i&&!ka.iptc[a])return{tag:void 0,tagSize:l};const u=cH(t,e+PP,l),d={id:a,name:uH(ka.iptc[a],a,u),value:u,description:hH(ka.iptc[a],u,n,r)};return mH(a)&&(d.repeatable=!0),vH(a)&&(d.encoding=ka.iptc[a].encoding_name(u)),{tag:d,tagSize:l}}function lH(t,e){return t.getUint8(e)!==28}function cH(t,e,n){const r=[];for(let i=0;i<n;i++)r.push(t.getUint8(e+i));return r}function uH(t,e,n){return t?dH(t)?t:fH(t)?t.name(n):t.name:`undefined-${e}`}function dH(t){return typeof t=="string"}function fH(t){return typeof t.name=="function"}function hH(t,e,n,r){if(gH(t))try{return t.description(e,n)}catch{}return pH(t,e)?$P.decode(r,e):e}function pH(t,e){return t&&e instanceof Array}function gH(t){return t&&t.description!==void 0}function mH(t){return ka.iptc[t]&&ka.iptc[t].repeatable}function vH(t){return ka.iptc[t]&&ka.iptc[t].encoding_name!==void 0}const tp={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>wt.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Fc(wt.XResolution,t),"tiff:YResolution":t=>Fc(wt.YResolution,t),"exif:ApertureValue":t=>Fc(wt.ApertureValue,t),"exif:GPSLatitude":VS,"exif:GPSLongitude":VS,"exif:FNumber":t=>Fc(wt.FNumber,t),"exif:FocalLength":t=>Fc(wt.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>wt.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>wt.ColorSpace(_H(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return wt.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>wt.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>wt.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>wt.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>wt.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return OP(t)?wt.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>wt.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>wt.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>wt.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>wt.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Fc(wt.ShutterSpeedValue,t),"exif:WhiteBalance":t=>wt.WhiteBalance(parseInt(t,10))};function Fc(t,e){return OP(e)?t(e.split("/")):e}function _H(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function OP(t){return/^-?\d+\/-?\d+$/.test(t)}function VS(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),i=parseFloat(n),o=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+o}return t}const bH={get:yH};function yH(t){if(t)return t;if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:e,onErrorStopParsing:n}=__non_webpack_require__("@xmldom/xmldom");return new e({onError:n})}catch{return}}function wH(t){const e=["prefix is non-null and namespace is null","prefix not bound to a namespace","prefix inte bundet till en namnrymd",/Namespace prefix .+ is not defined/];for(let n=0;n<e.length;n++)if(new RegExp(e[n]).test(t.message))return!0;return!1}function xH(t){const e=t.match(/<([A-Za-z_][A-Za-z0-9._-]*)([^>]*)>/);if(!e)return t;const n=e[1],r=kH(t),o=SH(t).filter(a=>r.indexOf(a)===-1);if(o.length===0)return t;const s=TH(o);return CH(t,n,s)}function kH(t){const e=[],n=/xmlns:([\w-]+)=["'][^"']+["']/g;let r;for(;(r=n.exec(t))!==null;)e.indexOf(r[1])===-1&&e.push(r[1]);return e}function SH(t){const e=[],n=/\b([A-Za-z_][A-Za-z0-9._-]*):[A-Za-z_][A-Za-z0-9._-]*\b/g;let r;for(;(r=n.exec(t))!==null;){const i=r[1];i==="xmlns"||i==="xml"||e.indexOf(i)===-1&&e.push(i)}return e}const EH={xmp:"http://ns.adobe.com/xap/1.0/",tiff:"http://ns.adobe.com/tiff/1.0/",exif:"http://ns.adobe.com/exif/1.0/",dc:"http://purl.org/dc/elements/1.1/",xmpMM:"http://ns.adobe.com/xap/1.0/mm/",stEvt:"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#",stRef:"http://ns.adobe.com/xap/1.0/sType/ResourceRef#",photoshop:"http://ns.adobe.com/photoshop/1.0/"};function TH(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=EH[r]||"http://fallback.namespace/"+r;e.push(" xmlns:"+r+'="'+i+'"')}return e.join("")}function CH(t,e,n){const r=new RegExp("<"+e+"([^>]*)>");return t.replace(r,"<"+e+"$1"+n+">")}const YS={read:$H};class AH extends Error{constructor(e){super(e),this.name="ParseError"}}function $H(t,e,n){const r={};if(typeof t=="string")return np(r,t,n),r;const[i,o]=IH(t,e),s=np(r,i,n);if(o){const a=np(r,o,n);!s&&!a&&(delete r._raw,np(r,$y(t,e),n))}return r}function IH(t,e){if(e.length===0)return[];const n=[$y(t,e.slice(0,1))];return e.length>1&&n.push($y(t,e.slice(1))),n}function $y(t,e){const n=e.reduce((o,s)=>o+s.length,0),r=new Uint8Array(n);let i=0;for(let o=0;o<e.length;o++){const s=e[o],a=t.buffer.slice(s.dataOffset,s.dataOffset+s.length);r.set(new Uint8Array(a),i),i+=s.length}return new DataView(r.buffer)}function np(t,e,n){try{const{doc:r,raw:i}=PH(e,n);t._raw=(t._raw||"")+i;const o=LP(r);return At(t,FP(RP(o,!0))),!0}catch{return!1}}function PH(t,e){const n=bH.get(e);if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const r=typeof t=="string"?t:Et(t,0,t.byteLength);return{doc:NP(n,OH(r)),raw:r}}function OH(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function NP(t,e,n=!1){try{const r=t.parseFromString(e,"application/xml"),i=r.getElementsByTagName("parsererror");if(i.length>0)throw new AH(i[0].textContent);return r}catch(r){if(r.name==="ParseError"&&wH(r)&&!n)return NP(t,xH(e),!0);throw r}}function LP(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return LP(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function RP(t,e=!1){const n=NH(t);return LH(n)?e?{}:RH(n[0]):FH(n)}function NH(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function LH(t){return t.length===1&&t[0].nodeName==="#text"}function RH(t){return t.nodeValue}function FH(t){const e={};return t.forEach(n=>{if(DH(n)){const r=MH(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function DH(t){return t.nodeName&&t.nodeName!=="#text"}function MH(t){return{attributes:zH(t),value:RP(t)}}function zH(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function FP(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(i=>{At(e,rx(i.attributes)),typeof i.value=="object"&&At(e,DP(i.value))})}return e}function rx(t){const e={};for(const n in t)try{UH(n)&&(e[nv(n)]={value:t[n],attributes:{},description:Xs(t[n],n)})}catch{}return e}function UH(t){return t!=="rdf:parseType"&&!tv(t)}function tv(t){return t.split(":")[0]==="xmlns"}function nv(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Xs(t,e=void 0){if(Array.isArray(t)){const n=jH(t);return e&&typeof tp[e]=="function"?tp[e](t,n):n}if(typeof t=="object")return BH(t);try{return e&&typeof tp[e]=="function"?tp[e](t):decodeURIComponent(escape(t))}catch{return t}}function jH(t){return t.map(e=>e.value!==void 0?Xs(e.value):Xs(e)).join(", ")}function BH(t){const e=[];for(const n in t)e.push(`${qH(n)}: ${Xs(t[n].value)}`);return e.join("; ")}function qH(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function DP(t){const e={};for(const n in t)try{tv(n)||(e[nv(n)]=HH(t[n],n))}catch{}return e}function HH(t,e){return WH(t)?KH(t,e):GH(t)?{value:"",attributes:{},description:""}:MP(t)?zP(t,e):UP(t)?jP(t,e):BP(t)?qP(t,e):ZH(t)?JH(t,e):ix(t,e)}function GH(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function WH(t){return Array.isArray(t)}function KH(t,e){return ix(t[t.length-1],e)}function MP(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function zP(t,e){const n=Nf(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),At(n,Nf(t),VH(t));const r=YH(t);return{value:r,attributes:n,description:Xs(r,e)}}function Nf(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!tv(n)&&(e[nv(n)]=t.attributes[n]);return e}function VH(t){const e={};for(const n in t.value)n!=="rdf:value"&&!tv(n)&&(e[nv(n)]=t.value[n].value);return e}function YH(t){return GP(t.value["rdf:value"])||t.value["rdf:value"].value}function UP(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function jP(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(At(n.value,rx(t.value["rdf:Description"].attributes)),At(n.attributes,Nf(t)),t=t.value["rdf:Description"]),At(n.value,DP(t.value)),n.description=Xs(n.value,e),n}function BP(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function qP(t,e){const n=rx(t.attributes);return{value:n,attributes:{},description:Xs(n,e)}}function ZH(t){return HP(t.value)!==void 0}function HP(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function JH(t,e){let n=HP(t.value).value["rdf:li"];const r=Nf(t),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(o=>{i.push(XH(o))}),{value:i,attributes:r,description:Xs(i,e)}}function XH(t){return MP(t)?zP(t):UP(t)?jP(t).value:BP(t)?qP(t).value:ix(t)}function ix(t,e){const n=GP(t)||FP(t.value);return{value:n,attributes:Nf(t),description:Xs(n,e)}}function GP(t){return t.attributes&&t.attributes["rdf:resource"]}const Cs={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},WP=24,E_={2e3:{name:"PathInformation",description:QH},2999:{name:"ClippingPathName",description(t){const[,e]=nP(t,0);return e}}};function QH(t){const n={},r=[];for(let i=0;i<t.byteLength;i+=2+WP){const o=Ke.getShortAt(t,i);T_[o]&&(n[o]||(n[o]=T_[o].description),r.push({type:o,path:T_[o].path(t,i+2)}))}return JSON.stringify({types:n,paths:r})}const T_={[Cs.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[Ke.getShortAt(t,e)]},[Cs.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:rp},[Cs.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:rp},[Cs.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[Ke.getShortAt(t,e)]},[Cs.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:rp},[Cs.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:rp},[Cs.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Cs.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[Ke.getShortAt(t,e)]},[Cs.CLIPBOARD]:{description:"Clipboard",path:tG}};function rp(t,e){const r=[];for(let i=0;i<WP;i+=8)r.push(eG(t,e+i));return r}function eG(t,e){const n=cl(t,e,8);return[cl(t,e+4,8),n]}function tG(t,e){return[[cl(t,e,8),cl(t,e+4,8),cl(t,e+8,8),cl(t,e+12,8)],cl(t,e+16,8)]}function cl(t,e,n){const r=Ke.getLongAt(t,e),i=r>>>31?-1:1,o=(r&2130706432)>>>32-n,s=r&parseInt(oP("1",32-n),2);return i*Q6(o.toString(2)+"."+X6(s.toString(2),32-n,"0"),2)}const nG={read:oG},KP="8BIM",rG=2,iG=4,ZS=KP.length;function oG(t,e){const n=bS(new Uint8Array(t).buffer),r={};let i=0;for(;i<t.length;){const o=Et(n,i,ZS);i+=ZS;const s=Ke.getShortAt(n,i);i+=rG;const{tagName:a,tagNameSize:l}=sG(n,i);i+=l;const u=Ke.getLongAt(n,i);if(i+=iG,o===KP){const d=bS(n.buffer,i,u),f={id:s,value:Et(d,0,u)};if(E_[s]){try{f.description=E_[s].description(d)}catch{f.description="<no description formatter>"}r[a||E_[s].name]=f}else e&&(r[`undefined-${s}`]=f)}i+=u+u%2}return r}function sG(t,e){const[n,r]=nP(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const JS={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},XS={4:{name:"Preferred CMM type",value:(t,e)=>Et(t,e,4),description:t=>t!==null?C_(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>Et(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>Et(t,e,4)},20:{name:"Connection Space",value:(t,e)=>Et(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>aG(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>lG(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>Et(t,e,4),description:t=>C_(t)},48:{name:"Device Manufacturer",value:(t,e)=>Et(t,e,4),description:t=>C_(t)},52:{name:"Device Model Number",value:(t,e)=>Et(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>Et(t,e,4)}};function aG(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,i=t.getUint16(e+4),o=t.getUint16(e+6),s=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,i,o,s,a))}function lG(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function C_(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const QS={read:vG},cG=84,uG=128,dG="acsp",fG="desc",hG="mluc",pG="text",gG="sig ",mG=12;function vG(t,e,n){return n&&e[0].compressionMethod!==mg?_G(t,e):yG(t,e)}function _G(t,e){if(!bG(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return aP(n,e[0].compressionMethod,"utf-8","dataview").then(VP).catch(()=>({}))}function bG(t){return t===sP}function yG(t,e){try{const n=e.reduce((s,a)=>s+a.length,0),r=new Uint8Array(n);let i=0;const o=wG(t);for(let s=1;s<=e.length;s++){const a=e.find(d=>d.chunkNumber===s);if(!a)throw new Error(`ICC chunk ${s} not found`);const l=o.slice(a.offset,a.offset+a.length),u=new Uint8Array(l);r.set(u,i),i+=u.length}return VP(new DataView(r.buffer))}catch{return{}}}function wG(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function xG(t){return t.length<uG+4}function kG(t,e){return t.length<e+mG}function VP(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.byteLength<cG)throw new Error("ICC profile too short");const r={},i=Object.keys(XS);for(let l=0;l<i.length;l++){const u=i[l],d=XS[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(ip(e.slice(36,40))!==dG)throw new Error("ICC profile: missing signature");if(xG(e))return r;const s=t.getUint32(128);let a=132;for(let l=0;l<s;l++){if(kG(e,a))return r;const u=Et(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=Et(t,d,4);if(h===fG){const p=t.getUint32(d+8);if(p>f)return r;const g=ip(e.slice(d+12,d+p+11));Ud(r,u,g)}else if(h===hG){const p=t.getUint32(d+8),g=t.getUint32(d+12);let m=d+16;const v=[];for(let b=0;b<p;b++){const y=Et(t,m+0,2),w=Et(t,m+2,2),E=t.getUint32(m+4),C=t.getUint32(m+8),S=Z6(t,d+C,E);v.push({languageCode:y,countryCode:w,text:S}),m+=g}if(p===1)Ud(r,u,v[0].text);else{const b={};for(let y=0;y<v.length;y++)b[`${v[y].languageCode}-${v[y].countryCode}`]=v[y].text;Ud(r,u,b)}}else if(h===pG){const p=ip(e.slice(d+8,d+f-7));Ud(r,u,p)}else if(h===gG){const p=ip(e.slice(d+8,d+12));Ud(r,u,p)}a=a+12}return r}function ip(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ud(t,e,n){JS[e]?t[JS[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Up=27,SG={read:EG,SHOT_INFO_AUTO_ROTATE:Up};function EG(t,e,n,r,i){let o=Ya(t,SP,e,e+n,r,i);return o.ShotInfo&&(o=At({},o,TG(o.ShotInfo.value)),delete o.ShotInfo),o}function TG(t){const e={};return t[Up]!==void 0&&(e.AutoRotate={value:t[Up],description:CG(t[Up])}),e}function CG(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const YP=8,ZP=YP+2,JP={K3_III:78420},jp={CAMERA_ORIENTATION:1,ROLL_ANGLE:3,PITCH_ANGLE:5},AG={read:$G,PENTAX_IFD_OFFSET:ZP,MODEL_ID:JP,LIK3III:jp};function $G(t,e,n,r){const i=cs.getByteOrder(t,e+n+YP),o=e+n;let s=Ya(t,nx,o,o+ZP,i,r);return IG(s)&&(s=At({},s,PG(t,o+s.LevelInfo.__offset,i)),delete s.LevelInfo),s}function IG(t){return t.PentaxModelID&&t.PentaxModelID.value===JP.K3_III&&t.LevelInfo}function PG(t,e,n){const r={};if(e+7>t.byteLength)return r;const i=t.getInt8(e+jp.CAMERA_ORIENTATION);r.CameraOrientation={value:i,description:OG(i)};const o=t.getInt16(e+jp.ROLL_ANGLE,n===cs.LITTLE_ENDIAN);r.RollAngle={value:o,description:NG(o)};const s=t.getInt16(e+jp.PITCH_ANGLE,n===cs.LITTLE_ENDIAN);return r.PitchAngle={value:s,description:LG(s)},r}function OG(t){return t===0?"Horizontal (normal)":t===1?"Rotate 270 CW":t===2?"Rotate 180":t===3?"Rotate 90 CW":t===4?"Upwards":t===5?"Downwards":"Unknown"}function NG(t){return""+t*-.5}function LG(t){return""+t*-.5}const RG={read:FG};function FG(t,e){return{"Image Width":DG(t,e),"Image Height":MG(t,e),"Bit Depth":zG(t,e),"Color Type":UG(t,e),Compression:jG(t,e),Filter:BG(t,e),Interlace:qG(t,e)}}function DG(t,e){if(e+0+4>t.byteLength)return;const i=Ke.getLongAt(t,e);return{value:i,description:`${i}px`}}function MG(t,e){if(e+4+4>t.byteLength)return;const i=Ke.getLongAt(t,e+4);return{value:i,description:`${i}px`}}function zG(t,e){if(e+8+1>t.byteLength)return;const i=Ke.getByteAt(t,e+8);return{value:i,description:`${i}`}}function UG(t,e){const i={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const o=Ke.getByteAt(t,e+9);return{value:o,description:i[o]||"Unknown"}}function jG(t,e){if(e+10+1>t.byteLength)return;const i=Ke.getByteAt(t,e+10);return{value:i,description:i===0?"Deflate/Inflate":"Unknown"}}function BG(t,e){if(e+11+1>t.byteLength)return;const i=Ke.getByteAt(t,e+11);return{value:i,description:i===0?"Adaptive":"Unknown"}}function qG(t,e){const i={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const o=Ke.getByteAt(t,e+12);return{value:o,description:i[o]||"Unknown"}}const HG={read:YG},Iy="STATE_KEYWORD",Py="STATE_COMPRESSION",Oy="STATE_LANG",GG="STATE_TRANSLATED_KEYWORD",Ny="STATE_TEXT",WG=1,KG=1,VG=6;function YG(t,e,n,r){const i={},o=[];for(let s=0;s<e.length;s++){const{offset:a,length:l,type:u}=e[s],d=ZG(t,a,l,u,n);if(d instanceof Promise)o.push(d.then(({name:f,value:h,description:p})=>{try{if(yS.USE_EXIF&&tE(f,h))return{__exif:AP.read(rE(h),VG,r).tags};if(yS.USE_IPTC&&nE(f,h))return{__iptc:Ay.read(rE(h),0,r)};if(f&&!tE(f,h)&&!nE(f,h))return{[f]:{value:h,description:p}}}catch{}return{}}));else{const{name:f,value:h,description:p}=d;f&&(i[f]={value:h,description:p})}}return{readTags:i,readTagsPromise:o.length>0?Promise.all(o):void 0}}function ZG(t,e,n,r,i){const o=[],s=[];let a,l=Iy,u=mg;for(let f=0;f<n&&e+f<t.byteLength;f++){if(l===Py){u=JG({type:r,dataView:t,offset:e+f}),r===Wl&&(f+=WG),l=eE(r,l);continue}else if(l===Ny){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?l=eE(r,l):l===Iy?o.push(h):l===Oy&&s.push(h)}if(u!==mg&&!i)return{};const d=aP(a,u,XG(r));return d instanceof Promise?d.then(f=>A_(f,r,s,o)).catch(()=>A_("<text using unknown compression>".split(""),r,s,o)):A_(d,r,s,o)}function JG({type:t,dataView:e,offset:n}){if(t===Wl){if(e.getUint8(n)===KG)return e.getUint8(n+1)}else if(t===Xm)return e.getUint8(n);return mg}function eE(t,e){return e===Iy&&[Wl,Xm].includes(t)?Py:e===Py?t===Wl?Oy:Ny:e===Oy?GG:Ny}function XG(t){return t===Q0||t===Xm?"latin1":"utf-8"}function A_(t,e,n,r){const i=e9(t);return{name:QG(e,n,r),value:i,description:e===Wl?t9(t):i}}function QG(t,e,n){const r=Gl(n);if(t===Q0||e.length===0)return r;const i=Gl(e);return`${r} (${i})`}function e9(t){return t instanceof DataView?Et(t,0,t.byteLength):t}function t9(t){return $P.decode("UTF-8",t)}function tE(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function nE(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function rE(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return n9(e[2].replace(/\n/g,""))}function n9(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const r9={read:i9};function i9(t,e){const n={};for(let r=0;r<e.length;r++){const i=Ke.getLongAt(t,e[r]+Gc),o=Et(t,e[r]+Va,ko);o===hP?(n["Pixels Per Unit X"]=o9(t,e[r],i),n["Pixels Per Unit Y"]=s9(t,e[r],i),n["Pixel Units"]=a9(t,e[r],i)):o===pP&&(n["Modify Date"]=l9(t,e[r],i))}return n}function o9(t,e,n){if(!rv(t,e,n,0,4))return;const o=Ke.getLongAt(t,e+Lr+0);return{value:o,description:""+o}}function s9(t,e,n){if(!rv(t,e,n,4,4))return;const o=Ke.getLongAt(t,e+Lr+4);return{value:o,description:""+o}}function a9(t,e,n){if(!rv(t,e,n,8,1))return;const o=Ke.getByteAt(t,e+Lr+8);return{value:o,description:o===1?"meters":"Unknown"}}function l9(t,e,n){if(!rv(t,e,n,0,7))return;const i=Ke.getShortAt(t,e+Lr),o=Ke.getByteAt(t,e+Lr+2),s=Ke.getByteAt(t,e+Lr+3),a=Ke.getByteAt(t,e+Lr+4),l=Ke.getByteAt(t,e+Lr+5),u=Ke.getByteAt(t,e+Lr+6);return{value:[i,o,s,a,l,u],description:`${Dc(i,4)}-${Dc(o,2)}-${Dc(s,2)} ${Dc(a,2)}:${Dc(l,2)}:${Dc(u,2)}`}}function rv(t,e,n,r,i){return r+i<=n&&e+Lr+r+i<=t.byteLength}function Dc(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const c9={read:f9},u9=4,d9=7;function f9(t,e){const n={},r=Ke.getByteAt(t,e);return n.Alpha=h9(r),n.Animation=p9(r),n.ImageWidth=iE(t,e+u9),n.ImageHeight=iE(t,e+d9),n}function h9(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function p9(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function iE(t,e){const n=Ke.getByteAt(t,e)+256*Ke.getByteAt(t,e+1)+65536*Ke.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const g9={read:m9};function m9(t){return{"GIF Version":v9(t),"Image Width":_9(t),"Image Height":b9(t),"Global Color Map":y9(t),"Bits Per Pixel":x9(t),"Color Resolution Depth":w9(t)}}function v9(t){if(6>t.byteLength)return;const r=Et(t,3,3);return{value:r,description:r}}function _9(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function b9(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function y9(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&128)>>>7;return{value:i,description:i===1?"Yes":"No"}}function w9(t){if(11>t.byteLength)return;const i=((t.getUint8(10)&112)>>>4)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}function x9(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&7)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}const k9=[6,7,99],S9={get:E9};function E9(t,e,n){if(T9(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),rP(e,"base64",function(){return iP(this.image)})}return e}function T9(t){return t&&(t.Compression===void 0||k9.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}const $_={INCHES:2,CENTIMETERS:3,MILLIMETERS:4},I_={INCHES_TO_MM:25.4,CM_TO_MM:10,MM_TO_MM:1},C9={get:A9};function A9(t,e){const n={};let r=!1;const i=ol(t,"exif","FocalLength",e),o=ol(t,"exif","FocalPlaneXResolution",e),s=ol(t,"exif","FocalPlaneYResolution",e),a=ol(t,"exif","FocalPlaneResolutionUnit",e),l=ol(t,"file","Image Width",e),u=ol(t,"file","Image Height",e),d=ol(t,"exif","FocalLengthIn35mmFilm",e)||$9(o,s,a,l,u,i);d&&(n.FocalLength35efl={value:d,description:wt.FocalLengthIn35mmFilm(d)},r=!0);const f=I9(i,d);f&&(n.ScaleFactorTo35mmEquivalent=f,r=!0);const h=P9(d);if(h&&(n.FieldOfView=h,r=!0),r)return n}function ol(t,e,n,r){if(r&&t[e]&&t[e][n])return t[e][n].value;if(!r&&t[n])return t[n].value}function $9(t,e,n,r,i,o){if(t&&e&&n&&r&&i&&o)try{let a;switch(n){case $_.INCHES:a=I_.INCHES_TO_MM;break;case $_.CENTIMETERS:a=I_.CM_TO_MM;break;case $_.MILLIMETERS:a=I_.MM_TO_MM;break;default:return}const l=t[0]/t[1]*a,u=e[0]/e[1]*a,d=r/l,f=i/u,h=Math.sqrt(d**2+f**2);return o[0]/o[1]*(43.27/h)}catch{}}function I9(t,e){if(t&&e)try{const n=e/(t[0]/t[1]);return{value:n,description:n.toFixed(1)}}catch{}}function P9(t){if(t)try{const n=2*Math.atan(36/(2*t))*(180/Math.PI);return{value:n,description:n.toFixed(1)+" deg"}}catch{}}function XP(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}XP.prototype=new Error;const QP={MetadataMissingError:XP},O9={load:N9,loadView:eO,errors:QP};function N9(t,e={}){return L9(t)?(e.async=!0,R9(t,e).then(n=>P_(n,e))):B9(t)?(e.async=!0,q9(t).then(n=>P_(n,e))):P_(t,e)}function L9(t){return typeof t=="string"}function R9(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?F9(t,e):D9(t,e):z9(t)?Promise.resolve(J6(t)):U9(t,e)}function F9(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function D9(t,{length:e}={}){return new Promise((n,r)=>{const i={};Number.isInteger(e)&&e>=0&&(i.headers={range:`bytes=0-${e-1}`}),M9(t)(t,i,s=>{if(s.statusCode>=200&&s.statusCode<=299){const a=[];s.on("data",l=>a.push(Buffer.from(l))),s.on("error",l=>r(l)),s.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${s.statusCode} ${s.statusMessage}`),s.resume()}).on("error",s=>r(s))})}function M9(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function z9(t){return/^data:[^;,]*(;base64)?,/.test(t)}function U9(t,{length:e}={}){return new Promise((n,r)=>{const i=j9();i.open(t,(o,s)=>{o?r(o):i.stat(t,(a,l)=>{if(a)r(a);else{const u=Math.min(l.size,e!==void 0?e:l.size),d=Buffer.alloc(u),f={buffer:d,length:u};i.read(s,f,h=>{h?r(h):i.close(s,p=>{p&&console.warn(`Could not close file ${t}:`,p),n(d)})})}})})})}function j9(){try{return __non_webpack_require__("fs")}catch{return}}function B9(t){return typeof File<"u"&&t instanceof File}function q9(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(i.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function P_(t,e){return H9(t)&&(t=new Uint8Array(t).buffer),eO(G9(t),e)}function H9(t){try{return Buffer.isBuffer(t)}catch{return!1}}function G9(t){try{return new DataView(t)}catch{return new tP(t)}}function eO(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1,domParser:i=void 0}={expanded:!1,async:!1,includeUnknown:!1,domParser:void 0}){let o=!1,s={};const a=[],{fileType:l,fileDataOffset:u,jfifDataOffset:d,tiffHeaderOffset:f,iptcDataOffset:h,xmpChunks:p,iccChunks:g,mpfDataOffset:m,pngHeaderOffset:v,pngTextChunks:b,pngChunkOffsets:y,vp8xChunkOffset:w,gifHeaderOffset:E}=q5.parseAppMarkers(t,n);if(W9(u)){o=!0;const x=Eq.read(t,u);e?s.file=x:s=At({},s,x)}if(K9(d)){o=!0;const x=Rq.read(t,d);e?s.jfif=x:s=At({},s,x)}if(V9(f)){o=!0;const{tags:x,byteOrder:$}=AP.read(t,f,r);if(x.Thumbnail&&(s.Thumbnail=x.Thumbnail,delete x.Thumbnail),e?(s.exif=x,Y9(s)):s=At({},s,x),x["IPTC-NAA"]&&!oE(h)){const I=Ay.read(x["IPTC-NAA"].value,0,r);e?s.iptc=I:s=At({},s,I)}if(x.ApplicationNotes&&!sE(p)){const I=YS.read(Gl(x.ApplicationNotes.value),void 0,i);e?s.xmp=I:(delete I._raw,s=At({},s,I))}if(x.ImageSourceData&&x.PhotoshopSettings){const I=nG.read(x.PhotoshopSettings.value,r);e?s.photoshop=I:s=At({},s,I)}if(x.ICC_Profile&&!aE(g)){const I=QS.read(x.ICC_Profile.value,[{offset:0,length:x.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=I:s=At({},s,I)}if(x.MakerNote){if(Z9(x)){const I=SG.read(t,f,x.MakerNote.__offset,$,r);e?s.makerNotes=I:s=At({},s,I)}else if(J9(x)){const I=AG.read(t,f,x.MakerNote.__offset,r);e?s.makerNotes=I:s=At({},s,I)}}x.MakerNote&&delete x.MakerNote.__offset}if(oE(h)){o=!0;const x=Ay.read(t,h,r);e?s.iptc=x:s=At({},s,x)}if(sE(p)){o=!0;const x=YS.read(t,p,i);e?s.xmp=x:(delete x._raw,s=At({},s,x))}if(aE(g)){o=!0;const x=QS.read(t,g,n);x instanceof Promise?a.push(x.then(A)):A(x)}if(X9(m)){o=!0;const x=vq.read(t,m,r);e?s.mpf=x:s=At({},s,x)}if(Q9(v)){o=!0;const x=RG.read(t,v);e?(s.png=s.png?At({},s.png,x):x,s.pngFile=x):s=At({},s,x)}if(e7(b)){o=!0;const{readTags:x,readTagsPromise:$}=HG.read(t,b,n,r);k(x),$&&a.push($.then(I=>I.forEach(k)))}if(t7(y)){o=!0;const x=r9.read(t,y);e?s.png=s.png?At({},s.png,x):x:s=At({},s,x)}if(n7(w)){o=!0;const x=c9.read(t,w);e?s.riff=s.riff?At({},s.riff,x):x:s=At({},s,x)}if(r7(E)){o=!0;const x=g9.read(t,E);e?s.gif=s.gif?At({},s.gif,x):x:s=At({},s,x)}const C=C9.get(s,e);C&&(e?s.composite=C:s=At({},s,C));const S=S9.get(t,s.Thumbnail,f);if(S?(o=!0,s.Thumbnail=S):delete s.Thumbnail,l&&(e?(s.file||(s.file={}),s.file.FileType=l):s.FileType=l,o=!0),!o)throw new QP.MetadataMissingError;if(n)return Promise.all(a).then(()=>s);return s;function A(x){e?s.icc=x:s=At({},s,x)}function k(x){if(e){for(const $ of["exif","iptc"]){const I=`__${$}`;x[I]&&(s[$]=s[$]?At({},s.exif,x[I]):x[I],delete x[I])}s.png=s.png?At({},s.png,x):x,s.pngText=s.pngText?At({},s.png,x):x}else s=At({},s,x.__exif?x.__exif:{},x.__iptc?x.__iptc:{},x),delete s.__exif,delete s.__iptc}}function W9(t){return t!==void 0}function K9(t){return t!==void 0}function V9(t){return t!==void 0}function Y9(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=vg(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=vg(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function oE(t){return t!==void 0}function sE(t){return Array.isArray(t)&&t.length>0}function aE(t){return Array.isArray(t)&&t.length>0}function Z9(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function J9(t){const e="PENTAX ";return t.MakerNote.value.length>e.length&&Gl(t.MakerNote.value.slice(0,e.length))===e&&t.MakerNote.__offset}function X9(t){return t!==void 0}function Q9(t){return t!==void 0}function e7(t){return t!==void 0}function t7(t){return t!==void 0}function n7(t){return t!==void 0}function r7(t){return t!==void 0}const ul=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},i7=/^(?<year>\d{4}):(?<month>\d{2}):(?<date>\d{2}) (?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})$/,o7=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{exif:{DateTimeOriginal:r,DateTime:i}={DateTimeOriginal:void 0,DateTime:void 0},gps:{Latitude:o,Longitude:s}={Latitude:void 0,Longitude:void 0}}=await O9.load(t.file,{expanded:!0}).catch(()=>{})??{},l=(r?.description??i?.description)?.match(i7);let u,d;if(l?.groups){const{year:f,month:h,date:p,hour:g,minute:m,second:v}=l.groups,b=new Date(`${f}-${h}-${p}T${g}:${m}:${v}Z`);Number.isNaN(b.getTime())||(u=b)}return typeof o=="number"&&typeof s=="number"&&Number.isFinite(o)&&Number.isFinite(s)&&(d={latitude:ul(o,7),longitude:ul(s,7)}),{createdDate:u,coordinates:d}},s7=t=>{const e=new Image;return new Promise(n=>{const r=()=>{n({dimensions:{width:e.naturalWidth,height:e.naturalHeight}})};e.addEventListener("load",r,{once:!0}),e.src=t})},a7=async(t,e)=>{const n=document.createElement(e);return new Promise(r=>{const i=()=>{const{duration:o}=n;e==="audio"&&r({duration:o});const{videoWidth:s,videoHeight:a}=n;r({dimensions:{width:s,height:a},duration:o})};n.addEventListener("loadedmetadata",i,{once:!0}),n.src=t})},l7=async(t,e)=>e==="image"?s7(t):a7(t,e),c7=async(t,e,n)=>{const{dimensions:r,duration:i}=await l7(e,n),{createdDate:o,coordinates:s}=await o7(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},u7="modulepreload",d7=function(t){return"/"+t},lE={},tO=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");i=l(n.map(u=>{if(u=d7(u),u in lE)return;lE[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":u7,d||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),d)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},Ly="0.102.0",f7={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.33.1","@sindresorhus/transliterate":"^1.6.0","@sveltia/ui":"^0.27.9","@sveltia/utils":"^0.8.0",deepmerge:"^4.3.1",exifreader:"^4.31.1","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.26.0",leaflet:"^1.9.4",lexical:"^0.33.1",marked:"^16.2.0","marked-bidi":"^1.0.13",mime:"^4.0.7",moment:"^2.30.1","parse-entities":"^4.0.2","pdfjs-dist":"^5.4.54",qrcode:"^1.5.4","sanitize-filename":"^1.6.3","smol-toml":"^1.4.2","svelte-i18n":"^4.0.1",svgo:"^4.0.0","terra-draw":"^1.12.0","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.1",yaml:"^2.8.1"},ox=t=>{const e=`https://unpkg.com/${t}`,n=f7[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},uu=async(t,e)=>tO(()=>import(`${ox(t)}/${e}`),[]),nO=["avif","gif","jpeg","png","webp"],h7=nO.map(t=>`image/${t}`),Ry=/\b(?:avif|gif|jpe?g|png|webp)$/i,p7=["image/svg+xml"],g7=/\b(?:svg)$/i,Zo=[...h7,...p7],rO=["webp"],O_={},m7=async t=>{if(t in O_)return O_[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return O_[t]=i,i},iO=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await m7(e)&&rO.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await uu(`@jsquash/${e}`,"encode.js?module")).default,a=await s(o,{quality:n});return new Blob([a],{type:r})}catch{}}return t.convertToBlob({type:r,quality:n/100})},v7=({width:t,height:e},{width:n=t,height:r=e,fit:i="scale-down"}={})=>{const o={scale:1,width:t,height:e};if(t===r&&e===r)return o;const s=t>e,a=t<r||e<r;let l=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(l=n/t,u=n):(l=r/t,u=r),d=e*l):(n>r?(l=r/e,d=r):(l=n/e,d=n),u=t*l)),{scale:l,width:u,height:d}},oO=(t,e,n)=>{const{scale:r,width:i,height:o}=v7(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},_7=async({blob:t})=>{const e=URL.createObjectURL(t),n=new Image;return new Promise(r=>{n.addEventListener("load",()=>{r({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(e)},{once:!0}),n.src=e})},b7=async({blob:t})=>{const e=URL.createObjectURL(t),n=document.createElement("video");return new Promise(r=>{n.addEventListener("canplay",()=>{n.pause(),r({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(e)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=e,n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n)})},y7=async t=>t.type.startsWith("video/")?b7({blob:t}):_7({blob:t}),sx=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,l=0;try{s=await createImageBitmap(t),{width:a,height:l}=s}catch{({source:s,naturalWidth:a,naturalHeight:l}=await y7(t))}r??=a,i??=l;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return oO(u,{width:a,height:l},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),iO(u,{format:e,quality:n})},w7=async t=>{const e=await t.text();try{const{optimize:n}=await uu("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},eu=ox("pdfjs-dist"),x7=`${eu}/build/pdf.min.mjs`,k7=`${eu}/build/pdf.worker.min.mjs`,S7={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${eu}/cmaps/`,iccUrl:`${eu}/iccs/`,standardFontDataUrl:`${eu}/standard_fonts/`,wasmUrl:`${eu}/wasm/`};let op;const E7=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!op)try{op=await import(x7),op.GlobalWorkerOptions.workerSrc=k7}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),l=a.getContext("2d");try{const d=await(await op.getDocument({...S7,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=oO(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:l,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return iO(a,{format:e,quality:n})},N_=new Set,Za=async(t,e=0)=>{const{file:n,blobURL:r,name:i,path:o}=t;if(r)return fetch(r).then(a=>a.blob());let s;if(n)s=n;else{if(N_.has(o)&&e<=25)return await Mt(200),Za(t,e+1);N_.add(o);const a=await oe(Dn)?.fetchBlob?.(t);if(!a)throw new Error("Failed to retrieve blob");s=new Blob([a],{type:sa.getType(i)??a.type})}return t.blobURL=URL.createObjectURL(s),N_.delete(o),s},ax=async t=>(t.blobURL||await Za(t),t.blobURL);let sp;const Fy=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(sp===void 0){const{databaseName:i}=oe(Dn)?.repository??{};sp=i?new as(i,"asset-thumbnails"):null}let r=await sp?.get(t.sha);if(!r){if(e)return;const i=await Za(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await E7(i,o):await sx(i,o),await sp?.set(t.sha,r)}return URL.createObjectURL(r)},Lf=(t,{pathOnly:e=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{const{publicPath:i,entryRelative:o,hasTemplateTags:s}=t.folder.collectionName===void 0?t.folder:zm(t.path).find(({collectionName:d})=>d!==void 0)??oe(fc);if(o)return e&&r&&yn(t.path).dirname===yn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:l=!1}={}}=oe(Rt);let u=s?t.path.replace(JI(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:Qt(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(l&&(u=XI(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},Nu=async({value:t,entry:e,collectionName:n,fileName:r,thumbnail:i=!1})=>{if(!t)return;if(/^(?:https?|data|blob):/.test(t))return t;const o=xx({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await Fy(o):await ax(o))??Lf(o)},yg={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},iv=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=oe(Dn)?.repository??{},i=await ax(t),o=Lf(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await c7(t,i,e)),{...s,publicURL:Lf(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await Uy(o):[]}},ld=st(!1),ts=st(),lx=st([]),$i=st([]),cx=st([]),sO=t=>oe(lx).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):mi(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),T7=()=>{try{return oe(ue)("index_file")}catch{return"Index File"}},Pi=t=>{const{index_file:e}=t;if(!Mf(t)||!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??T7(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},bs=(t,e)=>{const n=Pi(t);return n?e.slug===n.name:!1},C7=t=>{const e=Pi(t);return e?!ys(t.name).some(({slug:n})=>n===e.name):!1},A7=/{{(?:year|month|day|hour|minute|second)}}/,aa=t=>sO(Object.values(t.locales)[0].path).map(({collectionName:e})=>mi(e)).filter(e=>!!e),$7=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:l})=>a==="datetime"&&l===t):e.find(({widget:a})=>a==="datetime"),i=r?n[r.name]:void 0;if(!r||!i)return;const{format:o,picker_utc:s=!1}=r;return ql({date:(s?Xe.utc:Xe)(i,o).toDate(),timeZone:s?"UTC":void 0})},aO=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=oe(Rt)??{},{slug:s,path:a,content:l}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!l||!u)return;const h=bs(n,t),g=(h?Pi(n):void 0)?.fields??f;let m;if(!(A7.test(u)&&(m=$7({dateFieldName:d,fields:g,content:l}),!m)))try{const v=Jo(u,{type:"preview_path",collection:n,content:l,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},I7=(t,e)=>`${oe(Dn)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,ov=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),sv=t=>t.filter(e=>ov(e)),cd=(t,e)=>{const n=typeof t=="string"?mi(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},hh=t=>t.label||t.name,Ja=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],ux=(t,e)=>oe($i).find(n=>aa(n).some(r=>r.name===t&&Ja(r,n).some(i=>i.name===e))),cE=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=oe(Rt);return t==="_singletons"?Array.isArray(r)?sv(r).findIndex(i=>i.name===e):-1:Xa({collections:n}).find(({name:i})=>i===t)?.files?.findIndex(({name:i})=>i===e)??-1}return-1},lO=["file","image"],pc=[...lO,"relation","select"],cO=[...pc,"list","number"],uO=t=>t.multiline||t.dotAll||t.source.includes("[\\S\\s]")||t.source.includes("[\\s\\S]"),dO=t=>Zs(Object.fromEntries(Object.entries($o(t)).filter(([e])=>!e.split(".").pop()?.startsWith("__sc_")))),fO=t=>t.replace(/"/g,"'"),ml=t=>t.replace(/"/g,"&quot;"),wg=new Map,hO=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,P7=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,O7=new RegExp(`${hO.source}|${P7.source}`),pO={id:"image",label:"Image",fields:[{name:"src",label:"Source",widget:"image"},{name:"alt",label:"Alt Text",required:!1},{name:"title",label:"Title",required:!1}],pattern:hO,toBlock:t=>{const{src:e="",alt:n="",title:r=""}=t;return e?`![${n}](${e}${r?` "${fO(r)}"`:""})`:""},toPreview:t=>{const{src:e="",alt:n="",title:r=""}=t;return`<img src="${ml(e)}" alt="${ml(n)}" title="${ml(r)}">`}},N7={id:"linked-image",label:"Image",fields:[...pO.fields,{name:"link",label:"Link",required:!1}],pattern:O7,fromBlock:t=>{const{src:e,alt:n,title:r,src2:i,alt2:o,title2:s,link:a}=t.groups??{};return{src:(e||i||"").trim(),alt:(n||o||"").trim(),title:(r||s||"").trim(),link:(a||"").trim()}},toBlock:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=e?`![${n}](${e}${r?` "${fO(r)}"`:""})`:"";return o&&i?`[${o}](${i})`:o},toPreview:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=`<img src="${ml(e)}" alt="${ml(n)}" title="${ml(r)}">`;return i?`<a href="${ml(i)}">${o}</a>`:o}},gO=t=>{if(wg.has(t))return wg.get(t);const e={icon:"image",label:oe(ue)("editor_components.image"),fields:[{name:"src",label:oe(ue)("editor_components.src"),widget:"image"},{name:"alt",label:oe(ue)("editor_components.alt"),required:!1},{name:"title",label:oe(ue)("editor_components.title"),required:!1}]};return{image:{...pO,...e},"linked-image":{...N7,...e,fields:[...e.fields,{name:"link",label:oe(ue)("editor_components.link"),required:!1}]}}[t]};var L_,uE;function dE(){if(uE)return L_;uE=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(Se){return Se}),s||(s=function(Se){return Se}),l||(l=function(Se,Ue,Ie){return Se.apply(Ue,Ie)}),u||(u=function(Se,Ue){return new Se(...Ue)});const d=k(Array.prototype.forEach),f=k(Array.prototype.lastIndexOf),h=k(Array.prototype.pop),p=k(Array.prototype.push),g=k(Array.prototype.splice),m=k(String.prototype.toLowerCase),v=k(String.prototype.toString),b=k(String.prototype.match),y=k(String.prototype.replace),w=k(String.prototype.indexOf),E=k(String.prototype.trim),C=k(Object.prototype.hasOwnProperty),S=k(RegExp.prototype.test),A=x(TypeError);function k($e){return function(Se){Se instanceof RegExp&&(Se.lastIndex=0);for(var Ue=arguments.length,Ie=new Array(Ue>1?Ue-1:0),We=1;We<Ue;We++)Ie[We-1]=arguments[We];return l($e,Se,Ie)}}function x($e){return function(){for(var Se=arguments.length,Ue=new Array(Se),Ie=0;Ie<Se;Ie++)Ue[Ie]=arguments[Ie];return u($e,Ue)}}function $($e,Se){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e($e,null);let Ie=Se.length;for(;Ie--;){let We=Se[Ie];if(typeof We=="string"){const be=Ue(We);be!==We&&(n(Se)||(Se[Ie]=be),We=be)}$e[We]=!0}return $e}function I($e){for(let Se=0;Se<$e.length;Se++)C($e,Se)||($e[Se]=null);return $e}function O($e){const Se=a(null);for(const[Ue,Ie]of t($e))C($e,Ue)&&(Array.isArray(Ie)?Se[Ue]=I(Ie):Ie&&typeof Ie=="object"&&Ie.constructor===Object?Se[Ue]=O(Ie):Se[Ue]=Ie);return Se}function N($e,Se){for(;$e!==null;){const Ie=i($e,Se);if(Ie){if(Ie.get)return k(Ie.get);if(typeof Ie.value=="function")return k(Ie.value)}$e=r($e)}function Ue(){return null}return Ue}const L=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Z=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),J=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=o(["#text"]),Y=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),te=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),se=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ie=s(/<%[\w\W]*|[\w\W]*%>/gm),ee=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),de=s(/^aria-[\-\w]+$/),ge=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),he=s(/^(?:\w+script|data):/i),_e=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=s(/^html$/i),pe=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ye=Object.freeze({__proto__:null,ARIA_ATTR:de,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:pe,DATA_ATTR:ne,DOCTYPE_NAME:fe,ERB_EXPR:ie,IS_ALLOWED_URI:ge,IS_SCRIPT_OR_DATA:he,MUSTACHE_EXPR:se,TMPLIT_EXPR:ee});const ve={element:1,text:3,progressingInstruction:7,comment:8,document:9},Le=function(){return typeof window>"u"?null:window},Ae=function(Se,Ue){if(typeof Se!="object"||typeof Se.createPolicy!="function")return null;let Ie=null;const We="data-tt-policy-suffix";Ue&&Ue.hasAttribute(We)&&(Ie=Ue.getAttribute(We));const be="dompurify"+(Ie?"#"+Ie:"");try{return Se.createPolicy(be,{createHTML(ke){return ke},createScriptURL(ke){return ke}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}},Qe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function qe(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Le();const Se=ft=>qe(ft);if(Se.version="3.2.6",Se.removed=[],!$e||!$e.document||$e.document.nodeType!==ve.document||!$e.Element)return Se.isSupported=!1,Se;let{document:Ue}=$e;const Ie=Ue,We=Ie.currentScript,{DocumentFragment:be,HTMLTemplateElement:ke,Node:Oe,Element:et,NodeFilter:Ze,NamedNodeMap:Ee=$e.NamedNodeMap||$e.MozNamedAttrMap,HTMLFormElement:Me,DOMParser:Je,trustedTypes:pt}=$e,dt=et.prototype,yt=N(dt,"cloneNode"),Bt=N(dt,"remove"),kn=N(dt,"nextSibling"),pn=N(dt,"childNodes"),$t=N(dt,"parentNode");if(typeof ke=="function"){const ft=Ue.createElement("template");ft.content&&ft.content.ownerDocument&&(Ue=ft.content.ownerDocument)}let It,Kt="";const{implementation:qt,createNodeIterator:Xn,createDocumentFragment:In,getElementsByTagName:Sn}=Ue,{importNode:Pn}=Ie;let Pt=Qe();Se.isSupported=typeof t=="function"&&typeof $t=="function"&&qt&&qt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_t,ERB_EXPR:Vt,TMPLIT_EXPR:Mn,DATA_ATTR:zn,ARIA_ATTR:Or,IS_SCRIPT_OR_DATA:fr,ATTR_WHITESPACE:Un,CUSTOM_ELEMENT:Wn}=ye;let{IS_ALLOWED_URI:ir}=ye,on=null;const ti=$({},[...L,...j,...q,...Z,...H]);let En=null;const Sr=$({},[...Y,...G,...X,...te]);let sn=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_i=null,qr=null,Ki=!0,un=!0,vt=!1,Tt=!0,Tn=!1,hr=!0,Nr=!1,uo=!1,On=!1,Cn=!1,Er=!1,Vi=!1,Do=!0,Hr=!1;const Oi="user-content-";let fo=!0,Ad=!1,Tc={},Cc=null;const ok=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let sk=null;const ak=$({},["audio","video","img","source","image","track"]);let jv=null;const lk=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bh="http://www.w3.org/1998/Math/MathML",qh="http://www.w3.org/2000/svg",ks="http://www.w3.org/1999/xhtml";let Ac=ks,Bv=!1,qv=null;const GF=$({},[Bh,qh,ks],v);let Hh=$({},["mi","mo","mn","ms","mtext"]),Gh=$({},["annotation-xml"]);const WF=$({},["title","style","font","a","script"]);let $d=null;const KF=["application/xhtml+xml","text/html"],VF="text/html";let Tr=null,$c=null;const YF=Ue.createElement("form"),ck=function(ce){return ce instanceof RegExp||ce instanceof Function},Hv=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($c&&$c===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=O(ce),$d=KF.indexOf(ce.PARSER_MEDIA_TYPE)===-1?VF:ce.PARSER_MEDIA_TYPE,Tr=$d==="application/xhtml+xml"?v:m,on=C(ce,"ALLOWED_TAGS")?$({},ce.ALLOWED_TAGS,Tr):ti,En=C(ce,"ALLOWED_ATTR")?$({},ce.ALLOWED_ATTR,Tr):Sr,qv=C(ce,"ALLOWED_NAMESPACES")?$({},ce.ALLOWED_NAMESPACES,v):GF,jv=C(ce,"ADD_URI_SAFE_ATTR")?$(O(lk),ce.ADD_URI_SAFE_ATTR,Tr):lk,sk=C(ce,"ADD_DATA_URI_TAGS")?$(O(ak),ce.ADD_DATA_URI_TAGS,Tr):ak,Cc=C(ce,"FORBID_CONTENTS")?$({},ce.FORBID_CONTENTS,Tr):ok,_i=C(ce,"FORBID_TAGS")?$({},ce.FORBID_TAGS,Tr):O({}),qr=C(ce,"FORBID_ATTR")?$({},ce.FORBID_ATTR,Tr):O({}),Tc=C(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Ki=ce.ALLOW_ARIA_ATTR!==!1,un=ce.ALLOW_DATA_ATTR!==!1,vt=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Tt=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Tn=ce.SAFE_FOR_TEMPLATES||!1,hr=ce.SAFE_FOR_XML!==!1,Nr=ce.WHOLE_DOCUMENT||!1,Cn=ce.RETURN_DOM||!1,Er=ce.RETURN_DOM_FRAGMENT||!1,Vi=ce.RETURN_TRUSTED_TYPE||!1,On=ce.FORCE_BODY||!1,Do=ce.SANITIZE_DOM!==!1,Hr=ce.SANITIZE_NAMED_PROPS||!1,fo=ce.KEEP_CONTENT!==!1,Ad=ce.IN_PLACE||!1,ir=ce.ALLOWED_URI_REGEXP||ge,Ac=ce.NAMESPACE||ks,Hh=ce.MATHML_TEXT_INTEGRATION_POINTS||Hh,Gh=ce.HTML_INTEGRATION_POINTS||Gh,sn=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&ck(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(sn.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&ck(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(sn.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(sn.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Tn&&(un=!1),Er&&(Cn=!0),Tc&&(on=$({},H),En=[],Tc.html===!0&&($(on,L),$(En,Y)),Tc.svg===!0&&($(on,j),$(En,G),$(En,te)),Tc.svgFilters===!0&&($(on,q),$(En,G),$(En,te)),Tc.mathMl===!0&&($(on,Z),$(En,X),$(En,te))),ce.ADD_TAGS&&(on===ti&&(on=O(on)),$(on,ce.ADD_TAGS,Tr)),ce.ADD_ATTR&&(En===Sr&&(En=O(En)),$(En,ce.ADD_ATTR,Tr)),ce.ADD_URI_SAFE_ATTR&&$(jv,ce.ADD_URI_SAFE_ATTR,Tr),ce.FORBID_CONTENTS&&(Cc===ok&&(Cc=O(Cc)),$(Cc,ce.FORBID_CONTENTS,Tr)),fo&&(on["#text"]=!0),Nr&&$(on,["html","head","body"]),on.table&&($(on,["tbody"]),delete _i.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');It=ce.TRUSTED_TYPES_POLICY,Kt=It.createHTML("")}else It===void 0&&(It=Ae(pt,We)),It!==null&&typeof Kt=="string"&&(Kt=It.createHTML(""));o&&o(ce),$c=ce}},uk=$({},[...j,...q,...V]),dk=$({},[...Z,...J]),ZF=function(ce){let Be=$t(ce);(!Be||!Be.tagName)&&(Be={namespaceURI:Ac,tagName:"template"});const ut=m(ce.tagName),jn=m(Be.tagName);return qv[ce.namespaceURI]?ce.namespaceURI===qh?Be.namespaceURI===ks?ut==="svg":Be.namespaceURI===Bh?ut==="svg"&&(jn==="annotation-xml"||Hh[jn]):!!uk[ut]:ce.namespaceURI===Bh?Be.namespaceURI===ks?ut==="math":Be.namespaceURI===qh?ut==="math"&&Gh[jn]:!!dk[ut]:ce.namespaceURI===ks?Be.namespaceURI===qh&&!Gh[jn]||Be.namespaceURI===Bh&&!Hh[jn]?!1:!dk[ut]&&(WF[ut]||!uk[ut]):!!($d==="application/xhtml+xml"&&qv[ce.namespaceURI]):!1},Mo=function(ce){p(Se.removed,{element:ce});try{$t(ce).removeChild(ce)}catch{Bt(ce)}},Ic=function(ce,Be){try{p(Se.removed,{attribute:Be.getAttributeNode(ce),from:Be})}catch{p(Se.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ce),ce==="is")if(Cn||Er)try{Mo(Be)}catch{}else try{Be.setAttribute(ce,"")}catch{}},fk=function(ce){let Be=null,ut=null;if(On)ce="<remove></remove>"+ce;else{const yr=b(ce,/^[\r\n\t ]+/);ut=yr&&yr[0]}$d==="application/xhtml+xml"&&Ac===ks&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const jn=It?It.createHTML(ce):ce;if(Ac===ks)try{Be=new Je().parseFromString(jn,$d)}catch{}if(!Be||!Be.documentElement){Be=qt.createDocument(Ac,"template",null);try{Be.documentElement.innerHTML=Bv?Kt:jn}catch{}}const Gr=Be.body||Be.documentElement;return ce&&ut&&Gr.insertBefore(Ue.createTextNode(ut),Gr.childNodes[0]||null),Ac===ks?Sn.call(Be,Nr?"html":"body")[0]:Nr?Be.documentElement:Gr},hk=function(ce){return Xn.call(ce.ownerDocument||ce,ce,Ze.SHOW_ELEMENT|Ze.SHOW_COMMENT|Ze.SHOW_TEXT|Ze.SHOW_PROCESSING_INSTRUCTION|Ze.SHOW_CDATA_SECTION,null)},Gv=function(ce){return ce instanceof Me&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof Ee)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},pk=function(ce){return typeof Oe=="function"&&ce instanceof Oe};function Ss(ft,ce,Be){d(ft,ut=>{ut.call(Se,ce,Be,$c)})}const gk=function(ce){let Be=null;if(Ss(Pt.beforeSanitizeElements,ce,null),Gv(ce))return Mo(ce),!0;const ut=Tr(ce.nodeName);if(Ss(Pt.uponSanitizeElement,ce,{tagName:ut,allowedTags:on}),hr&&ce.hasChildNodes()&&!pk(ce.firstElementChild)&&S(/<[/\w!]/g,ce.innerHTML)&&S(/<[/\w!]/g,ce.textContent)||ce.nodeType===ve.progressingInstruction||hr&&ce.nodeType===ve.comment&&S(/<[/\w]/g,ce.data))return Mo(ce),!0;if(!on[ut]||_i[ut]){if(!_i[ut]&&vk(ut)&&(sn.tagNameCheck instanceof RegExp&&S(sn.tagNameCheck,ut)||sn.tagNameCheck instanceof Function&&sn.tagNameCheck(ut)))return!1;if(fo&&!Cc[ut]){const jn=$t(ce)||ce.parentNode,Gr=pn(ce)||ce.childNodes;if(Gr&&jn){const yr=Gr.length;for(let bi=yr-1;bi>=0;--bi){const Es=yt(Gr[bi],!0);Es.__removalCount=(ce.__removalCount||0)+1,jn.insertBefore(Es,kn(ce))}}}return Mo(ce),!0}return ce instanceof et&&!ZF(ce)||(ut==="noscript"||ut==="noembed"||ut==="noframes")&&S(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Mo(ce),!0):(Tn&&ce.nodeType===ve.text&&(Be=ce.textContent,d([_t,Vt,Mn],jn=>{Be=y(Be,jn," ")}),ce.textContent!==Be&&(p(Se.removed,{element:ce.cloneNode()}),ce.textContent=Be)),Ss(Pt.afterSanitizeElements,ce,null),!1)},mk=function(ce,Be,ut){if(Do&&(Be==="id"||Be==="name")&&(ut in Ue||ut in YF))return!1;if(!(un&&!qr[Be]&&S(zn,Be))){if(!(Ki&&S(Or,Be))){if(!En[Be]||qr[Be]){if(!(vk(ce)&&(sn.tagNameCheck instanceof RegExp&&S(sn.tagNameCheck,ce)||sn.tagNameCheck instanceof Function&&sn.tagNameCheck(ce))&&(sn.attributeNameCheck instanceof RegExp&&S(sn.attributeNameCheck,Be)||sn.attributeNameCheck instanceof Function&&sn.attributeNameCheck(Be))||Be==="is"&&sn.allowCustomizedBuiltInElements&&(sn.tagNameCheck instanceof RegExp&&S(sn.tagNameCheck,ut)||sn.tagNameCheck instanceof Function&&sn.tagNameCheck(ut))))return!1}else if(!jv[Be]){if(!S(ir,y(ut,Un,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ce!=="script"&&w(ut,"data:")===0&&sk[ce])){if(!(vt&&!S(fr,y(ut,Un,"")))){if(ut)return!1}}}}}}return!0},vk=function(ce){return ce!=="annotation-xml"&&b(ce,Wn)},_k=function(ce){Ss(Pt.beforeSanitizeAttributes,ce,null);const{attributes:Be}=ce;if(!Be||Gv(ce))return;const ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:En,forceKeepAttr:void 0};let jn=Be.length;for(;jn--;){const Gr=Be[jn],{name:yr,namespaceURI:bi,value:Es}=Gr,Id=Tr(yr),Wv=Es;let Wr=yr==="value"?Wv:E(Wv);if(ut.attrName=Id,ut.attrValue=Wr,ut.keepAttr=!0,ut.forceKeepAttr=void 0,Ss(Pt.uponSanitizeAttribute,ce,ut),Wr=ut.attrValue,Hr&&(Id==="id"||Id==="name")&&(Ic(yr,ce),Wr=Oi+Wr),hr&&S(/((--!?|])>)|<\/(style|title)/i,Wr)){Ic(yr,ce);continue}if(ut.forceKeepAttr)continue;if(!ut.keepAttr){Ic(yr,ce);continue}if(!Tt&&S(/\/>/i,Wr)){Ic(yr,ce);continue}Tn&&d([_t,Vt,Mn],yk=>{Wr=y(Wr,yk," ")});const bk=Tr(ce.nodeName);if(!mk(bk,Id,Wr)){Ic(yr,ce);continue}if(It&&typeof pt=="object"&&typeof pt.getAttributeType=="function"&&!bi)switch(pt.getAttributeType(bk,Id)){case"TrustedHTML":{Wr=It.createHTML(Wr);break}case"TrustedScriptURL":{Wr=It.createScriptURL(Wr);break}}if(Wr!==Wv)try{bi?ce.setAttributeNS(bi,yr,Wr):ce.setAttribute(yr,Wr),Gv(ce)?Mo(ce):h(Se.removed)}catch{Ic(yr,ce)}}Ss(Pt.afterSanitizeAttributes,ce,null)},JF=function ft(ce){let Be=null;const ut=hk(ce);for(Ss(Pt.beforeSanitizeShadowDOM,ce,null);Be=ut.nextNode();)Ss(Pt.uponSanitizeShadowNode,Be,null),gk(Be),_k(Be),Be.content instanceof be&&ft(Be.content);Ss(Pt.afterSanitizeShadowDOM,ce,null)};return Se.sanitize=function(ft){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,ut=null,jn=null,Gr=null;if(Bv=!ft,Bv&&(ft="<!-->"),typeof ft!="string"&&!pk(ft))if(typeof ft.toString=="function"){if(ft=ft.toString(),typeof ft!="string")throw A("dirty is not a string, aborting")}else throw A("toString is not a function");if(!Se.isSupported)return ft;if(uo||Hv(ce),Se.removed=[],typeof ft=="string"&&(Ad=!1),Ad){if(ft.nodeName){const Es=Tr(ft.nodeName);if(!on[Es]||_i[Es])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(ft instanceof Oe)Be=fk("<!---->"),ut=Be.ownerDocument.importNode(ft,!0),ut.nodeType===ve.element&&ut.nodeName==="BODY"||ut.nodeName==="HTML"?Be=ut:Be.appendChild(ut);else{if(!Cn&&!Tn&&!Nr&&ft.indexOf("<")===-1)return It&&Vi?It.createHTML(ft):ft;if(Be=fk(ft),!Be)return Cn?null:Vi?Kt:""}Be&&On&&Mo(Be.firstChild);const yr=hk(Ad?ft:Be);for(;jn=yr.nextNode();)gk(jn),_k(jn),jn.content instanceof be&&JF(jn.content);if(Ad)return ft;if(Cn){if(Er)for(Gr=In.call(Be.ownerDocument);Be.firstChild;)Gr.appendChild(Be.firstChild);else Gr=Be;return(En.shadowroot||En.shadowrootmode)&&(Gr=Pn.call(Ie,Gr,!0)),Gr}let bi=Nr?Be.outerHTML:Be.innerHTML;return Nr&&on["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&S(fe,Be.ownerDocument.doctype.name)&&(bi="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
151
151
  `+bi),Tn&&d([_t,Vt,Mn],Es=>{bi=y(bi,Es," ")}),It&&Vi?It.createHTML(bi):bi},Se.setConfig=function(){let ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hv(ft),uo=!0},Se.clearConfig=function(){$c=null,uo=!1},Se.isValidAttribute=function(ft,ce,Be){$c||Hv({});const ut=Tr(ft),jn=Tr(ce);return mk(ut,jn,Be)},Se.addHook=function(ft,ce){typeof ce=="function"&&p(Pt[ft],ce)},Se.removeHook=function(ft,ce){if(ce!==void 0){const Be=f(Pt[ft],ce);return Be===-1?void 0:g(Pt[ft],Be,1)[0]}return h(Pt[ft])},Se.removeHooks=function(ft){Pt[ft]=[]},Se.removeAllHooks=function(){Pt=Qe()},Se}var Ve=qe();return L_=Ve,L_}var R_,fE;function L7(){return fE||(fE=1,R_=window.DOMPurify||(window.DOMPurify=dE().default||dE())),R_}var xg=L7();const Bi=Ju(xg);function dx(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var gc=dx();function mO(t){gc=t}var df={exec:()=>null};function cn(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(li.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var li={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},R7=/^(?:[ \t]*(?:\n|$))+/,F7=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,D7=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ph=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,M7=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fx=/(?:[*+-]|\d{1,9}[.)])/,vO=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_O=cn(vO).replace(/bull/g,fx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),z7=cn(vO).replace(/bull/g,fx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),hx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,U7=/^[^\n]+/,px=/(?!\s*\])(?:\\.|[^\[\]\\])+/,j7=cn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",px).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),B7=cn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fx).getRegex(),av="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gx=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,q7=cn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",gx).replace("tag",av).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bO=cn(hx).replace("hr",ph).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",av).getRegex(),H7=cn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bO).getRegex(),mx={blockquote:H7,code:F7,def:j7,fences:D7,heading:M7,hr:ph,html:q7,lheading:_O,list:B7,newline:R7,paragraph:bO,table:df,text:U7},hE=cn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ph).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",av).getRegex(),G7={...mx,lheading:z7,table:hE,paragraph:cn(hx).replace("hr",ph).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hE).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",av).getRegex()},W7={...mx,html:cn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gx).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:df,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:cn(hx).replace("hr",ph).replace("heading",` *#{1,6} *[^
152
152
  ]`).replace("lheading",_O).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K7=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,V7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yO=/^( {2,}|\\)\n(?!\s*$)/,Y7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,lv=/[\p{P}\p{S}]/u,vx=/[\s\p{P}\p{S}]/u,wO=/[^\s\p{P}\p{S}]/u,Z7=cn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,vx).getRegex(),xO=/(?!~)[\p{P}\p{S}]/u,J7=/(?!~)[\s\p{P}\p{S}]/u,X7=/(?:[^\s\p{P}\p{S}]|~)/u,Q7=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,kO=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,eW=cn(kO,"u").replace(/punct/g,lv).getRegex(),tW=cn(kO,"u").replace(/punct/g,xO).getRegex(),SO="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nW=cn(SO,"gu").replace(/notPunctSpace/g,wO).replace(/punctSpace/g,vx).replace(/punct/g,lv).getRegex(),rW=cn(SO,"gu").replace(/notPunctSpace/g,X7).replace(/punctSpace/g,J7).replace(/punct/g,xO).getRegex(),iW=cn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wO).replace(/punctSpace/g,vx).replace(/punct/g,lv).getRegex(),oW=cn(/\\(punct)/,"gu").replace(/punct/g,lv).getRegex(),sW=cn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),aW=cn(gx).replace("(?:-->|$)","-->").getRegex(),lW=cn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",aW).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kg=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,cW=cn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",kg).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),EO=cn(/^!?\[(label)\]\[(ref)\]/).replace("label",kg).replace("ref",px).getRegex(),TO=cn(/^!?\[(ref)\](?:\[\])?/).replace("ref",px).getRegex(),uW=cn("reflink|nolink(?!\\()","g").replace("reflink",EO).replace("nolink",TO).getRegex(),_x={_backpedal:df,anyPunctuation:oW,autolink:sW,blockSkip:Q7,br:yO,code:V7,del:df,emStrongLDelim:eW,emStrongRDelimAst:nW,emStrongRDelimUnd:iW,escape:K7,link:cW,nolink:TO,punctuation:Z7,reflink:EO,reflinkSearch:uW,tag:lW,text:Y7,url:df},dW={..._x,link:cn(/^!?\[(label)\]\((.*?)\)/).replace("label",kg).getRegex(),reflink:cn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kg).getRegex()},Dy={..._x,emStrongRDelimAst:rW,emStrongLDelim:tW,url:cn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},fW={...Dy,br:cn(yO).replace("{2,}","*").getRegex(),text:cn(Dy.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ap={normal:mx,gfm:G7,pedantic:W7},jd={normal:_x,gfm:Dy,breaks:fW,pedantic:dW},hW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pE=t=>hW[t];function jo(t,e){if(e){if(li.escapeTest.test(t))return t.replace(li.escapeReplace,pE)}else if(li.escapeTestNoEncode.test(t))return t.replace(li.escapeReplaceNoEncode,pE);return t}function gE(t){try{t=encodeURI(t).replace(li.percentDecode,"%")}catch{return null}return t}function mE(t,e){let n=t.replace(li.findPipe,(o,s,a)=>{let l=!1,u=s;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(li.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(li.slashPipe,"|");return r}function Bd(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function pW(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function vE(t,e,n,r,i){let o=e.href,s=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function gW(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
153
153
  `).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=i.length?o.slice(i.length):o}).join(`
@@ -502,7 +502,7 @@ ${m}`;v.inputValue=k}))}),De(()=>{v.initialized&&(v.inputValue,Ce(()=>{const{lan
502
502
  @media (prefers-reduced-motion) {*,
503
503
  ::before,
504
504
  ::after {scroll-behavior:auto;transition-duration:1ms !important;}
505
- }::selection {background-color:var(--sui-primary-accent-color-translucent);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-primary-accent-color-translucent);z-index:2;}:is(h1, h2, h3, h4, h5, h6) {margin:0;font-weight:var(--sui-font-weight-bold, bold);line-height:var(--sui-line-height-default);}h1 {font-size:32px;}h2 {font-size:28px;}h3 {font-size:24px;}h4 {font-size:20px;}h5 {font-size:16px;}h6 {font-size:12px;}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-t8bml8 a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-t8bml8 {position:absolute;left:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-t8bml8 {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-t8bml8 {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-t8bml8 {display:flex;flex-direction:column;overflow:hidden;}`};function ire(t,e){ae(e,!0),xe(t,rre);let n=P(e,"orientation",3,"horizontal"),r=lt(e,["$$slots","$$events","$$legacy","orientation","children"]);const i=["https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap","https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"];let o=re(void 0);Zt(()=>{const p=globalThis.matchMedia("(prefers-color-scheme: dark)"),{dataset:g}=document.documentElement,m=()=>{g.autoTheming!=="false"&&(g.theme=p.matches?"dark":"light")};m(),p.onchange=()=>{m()},globalThis.setTimeout(()=>{c(o)?.remove()},1e3)});var s=nre();_$(p=>{var g=tre(),m=D(R(g),8);ct(m,17,()=>i,Ur,(v,b)=>{var y=ere(),w=R(y),E=D(w,2);W(()=>{Te(w,"href",c(b)),Te(E,"href",c(b))}),T(v,y)}),T(p,g)});var a=R(s);go(a,"",{},{opacity:"0"}),St(a,p=>B(o,p),()=>c(o));var l=D(a,2),u=p=>p.preventDefault(),d=p=>p.preventDefault(),f=p=>{if(document.documentElement.matches('[data-env="dev"]'))return;const g=p.target;document.documentElement.matches('[data-env="dev"]')||g?.matches("input, textarea")&&"maxLength"in g||g?.closest('[role="textbox"]')?.contentEditable==="true"||p.preventDefault()};xt(l,()=>({...r,role:"none",class:`sui app-shell ${n()??""}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,"svelte-t8bml8");var h=F(l);Fe(h,()=>e.children??ze),T(t,s),le()}var ore=M('<div role="none" class="sui empty-state svelte-1izgvlt"><!></div>');const sre={hash:"svelte-1izgvlt",code:".empty-state.svelte-1izgvlt {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}"};function $r(t,e){xe(t,sre);let n=P(e,"children",3,void 0);var r=ore(),i=F(r);Fe(i,()=>n()??ze),T(t,r)}var are=M('<div><div role="none" class="inner svelte-3h03g8"><!></div></div>');const lre={hash:"svelte-3h03g8",code:".inner.svelte-3h03g8 {display:contents;}"};function is(t,e){xe(t,lre);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=lt(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children"]);var o=are();xt(o,()=>({...i,role:"group",class:`sui group ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,"svelte-3h03g8");var s=F(o),a=F(s);Fe(a,()=>e.children??ze),W(()=>s.inert=r()),T(t,o)}const OR=({fallbackLocale:t="en",initialLocale:e="en"}={})=>{Object.entries(Object.assign({"./locales/en.js":oZ,"./locales/ja.js":aZ})).forEach(([r,{strings:i}])=>{const[,o]=r.match(/([a-zA-Z-]+)\.js/);l0(o,{_sui:i})}),G3({fallbackLocale:t,initialLocale:e})};OR();const NR='<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>',cre=(t,{field:e,pattern:n}={field:"",pattern:""})=>{if(!e)return t;if(e==="fileType")return t.filter(({path:i})=>mh(i)===n);const r=fd(n);return t.filter(i=>{const o=i[e];return r?r.test(String(o??"")):o===n})},ure=(t,{field:e,pattern:n}={field:"",pattern:void 0})=>{if(!e)return t.length?{"*":t}:{};const r=fd(n),i={},o=oe(ue)("other");return t.forEach(s=>{const a=s[e];let l;r?[l=o]=String(a??"").match(r)??[]:l=a,l in i||(i[l]=[]),i[l].push(s)}),Object.fromEntries(Object.entries(i).sort(([s],[a])=>ji(s,a)))},PC=(t,e)=>{const{commitAuthor:{name:n,login:r,email:i}={},commitDate:o}=t;return e==="commit_author"?n||r||i:e==="commit_date"?o:e==="name"?t.name.split(".")[0]:t[e]??""},dre=(t,{key:e,order:n}={})=>{if(!e||!n)return t;const r=[...t],i={commit_author:String,commit_date:Date}[e]||r[0]?.[e]?.constructor||String;return r.sort((o,s)=>{const a=PC(o,e),l=PC(s,e);return i===String?ji(a,l):i===Date?Number(a)-Number(l):a-l}),n==="descending"&&r.reverse(),r},tl=st(!1),ga=st(!1),fre=hn([_o],([t],e)=>{e(!!t.files.length)}),Rv=({collectionName:t,fileName:e,internalPath:n})=>{if(t===void 0)return oe(ue)(n===void 0?"all_assets":"global_assets");const r=mi(t),i=r?Qs(r):t;if(!e)return i;const o=r?cd(r,e):void 0,s=o?hh(o):e;return`${i} › ${s}`},ma=st({type:"grid",showInfo:!0}),wc=hn([tr,mo],([t,e],n)=>{t&&e&&e.internalPath!==void 0?n(t.filter(({folder:r})=>_n(r,e))):n(t?[...t]:[])}),D1=hn([wc,ma],([t,e],n)=>{let r=[...t];r=dre(r,e.sort),r=cre(r,e.filter);const i=ure(r,e.group);_n(oe(D1),i)||n(i)});wc.subscribe(t=>{Ff.set([]),oe(gt).devModeEnabled&&console.info("listedAssets",t)});const xn=st(!1),xs=st(!1),Rh=st(!1),Cd=st(!0),hre=()=>{const t=globalThis.matchMedia("(width < 768px)"),e=globalThis.matchMedia("(768px <= width < 1024px)"),n=globalThis.matchMedia("(1024px <= width)"),r=globalThis.matchMedia("(pointer: fine)"),i=()=>xn.set(t.matches),o=()=>xs.set(e.matches),s=()=>Rh.set(n.matches),a=()=>Cd.set(r.matches);i(),o(),s(),a(),t.addEventListener("change",i),e.addEventListener("change",o),n.addEventListener("change",s),r.addEventListener("change",a)},M1=hn([cc,tl],([t,e])=>t||e),Nw=st(""),xi=st(""),fs=(t=window.location.href)=>{const{origin:e,hash:n}=new URL(t),{pathname:r,searchParams:i}=new URL(`${e}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries(i)}},z1=(t,e)=>{if(!oe(xn)||!document.startViewTransition){e();return}document.startViewTransition({types:[t],update:async()=>{e(),await Mt(50),await new Promise(n=>{Vu(()=>{n(void 0)})})}})},U1=(t,e,n)=>{const{isTrusted:r,oldURL:i,newURL:o}=t;if(!r){e();return}const s=fs(i).path,a=fs(o).path,l=n.test(s)&&n.test(a),u=s.split("/").length,d=a.split("/").length,f=l&&u>d?"backwards":l&&u<d?"forwards":"unknown";z1(f,()=>e())},tn=async(t,{state:e={},replaceState:n=!1,notifyChange:r=!0,transitionType:i="unknown"}={})=>{const{origin:o,pathname:s,hash:a}=window.location,l=`${o}${s}${a}`,u=`${o}${s}#${t}`,d=[{...e,from:l},"",u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&z1(i,()=>{window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:l,newURL:u}))})},ja=(t,e={})=>{const n="backwards";window.history.state?.from?z1(n,()=>{window.history.back()}):tn(t,{...e,transitionType:n})},LR=()=>{const{display_url:t,_siteURL:e}=oe(Rt);window.open(t||e||"/","_blank")},Fv=st({message:"",context:"authentication"}),Wu=st(!0),vu=st(!1),RR=()=>{Fv.set({message:"",context:"authentication"})},Jp=(t,e="authentication")=>{let n=t.cause?.message||oe(ue)("unexpected_error");t.name==="NotFoundError"&&(n=oe(ue)("sign_in_error.not_project_root")),t.name==="AbortError"&&(n=oe(ue)(oe(hd)==="local"?"sign_in_error.picker_dismissed":"sign_in_error.authentication_aborted")),Fv.set({message:n,context:e}),console.error(t.name,t.message,t.cause)},pre=async()=>{RR();const t=await Ei.get("sveltia-cms.user")||await Ei.get("decap-cms-user")||await Ei.get("netlify-cms-user"),e=ln(t);if(e&&!Object.keys(t).length)return;let n=e&&t.backendName?t:void 0;const r=n?.backendName==="local"||n?.backendName==="proxy"?"local":oe(Rt).backend.name;hd.set(r);const i=oe(Dn),{path:o}=fs();let s;if(!n&&i){const{encodedData:a}=o.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(a){tn("",{replaceState:!0});try{const l=JSON.parse(atob(a));ln(l)&&typeof l.token=="string"&&(n={token:l.token},ln(l.prefs)&&(s=l.prefs))}catch{}}}if(n&&i){cr.set(n);const{token:a,refreshToken:l}=n;vu.set(!0);try{n=await i.signIn({token:a,refreshToken:l,auto:!0})}catch{n=void 0,cr.set(void 0)}}if(vu.set(!1),Wu.set(!n),!(!n||!i)){cr.set(n),s&&gt.update(a=>({...a,...s}));try{await i.fetchFiles()}catch(a){[401,403,404].includes(a.cause?.status)?Wu.set(!0):Jp(a,"dataFetch")}}},lb=async(t,e)=>{RR(),hd.set(t);const n=oe(Dn);if(!n)return;let r;vu.set(!0);try{r=await n.signIn({token:e,auto:!1})}catch(i){vu.set(!1),Wu.set(!0),e&&i.cause?.status===401?Jp(new Error("Invalid token",{cause:{message:oe(ue)("sign_in_error.invalid_token")}})):Jp(i);return}if(vu.set(!1),Wu.set(!r),!!r){cr.set(r);try{await n.fetchFiles()}catch(i){Jp(i,"dataFetch")}}},gre=async()=>{await oe(Dn)?.signOut(),await Ei.set("sveltia-cms.user",{}),hd.set(void 0),cr.set(void 0),Wu.set(!0),ld.set(!1);const t=oe(Rt)?.logout_redirect_url;t&&(window.location.href=t)};var mre=M('<div role="alert" class="message svelte-k5z3d"> </div>'),vre=M('<div role="alert" class="svelte-k5z3d"> </div>'),_re=M('<div role="alert" class="svelte-k5z3d"><!></div>'),bre=M('<div role="none"><!></div>'),yre=M("<!> <!> <!>",1),wre=M("<!> <!> <!>",1),xre=M('<div role="alert" class="error svelte-k5z3d"><!> </div>'),kre=M('<div role="none" class="buttons svelte-k5z3d"><!> <!></div> <!>',1);const Sre={hash:"svelte-k5z3d",code:".buttons.svelte-k5z3d {display:flex;flex-direction:column;align-items:center;gap:16px;}.buttons.svelte-k5z3d .button {width:280px;}[role=alert].svelte-k5z3d {display:flex;align-items:center;gap:8px;}[role=alert].error.svelte-k5z3d {color:var(--sui-error-foreground-color);}"};function Ere(t,e){ae(e,!0),xe(t,Sre);const[n,r]=me(),i=()=>z(Rt,"$siteConfig",n),o=()=>z(vu,"$signingIn",n),s=()=>z(ue,"$_",n),a=()=>z(Fv,"$signInError",n);let l=re(!1),u=re(!1),d=re(!1),f=re(!1),h=re("");const p=_(()=>i()?.backend?.name),g=_(()=>c(p)?wh[c(p)]:null),m=_(()=>i()?.backend?.repo?.split("/")?.[1]),v=_(()=>c(p)==="test-repo"),b=_(()=>c(l)&&!c(v));Zt(()=>{const{hostname:$}=window.location;B(l,$==="127.0.0.1"||$==="localhost"||$.endsWith(".localhost"),!0),B(u,"showDirectoryPicker"in window),B(d,navigator.userAgentData?.brands.some(({brand:I})=>I==="Brave")??!1,!0),pre()});var y=kre(),w=R(y),E=F(w);{var C=$=>{var I=mre(),O=F(I);W(N=>Q(O,N),[()=>s()("signing_in")]),T($,I)},S=$=>{var I=K(),O=R(I);{var N=j=>{var q=vre(),V=F(q);W(Z=>Q(V,Z),[()=>s()("config.error.unsupported_backend",{values:{name:c(p)}})]),T(j,q)},L=j=>{var q=wre(),V=R(q);{var Z=G=>{var X=yre(),te=R(X);{let de=_(()=>s()("work_with_local_repo")),ge=_(()=>!c(u));nt(te,{variant:"primary",get label(){return c(de)},get disabled(){return c(ge)},onclick:async()=>{await lb("local")}})}var se=D(te,2);{var ie=de=>{var ge=_re(),he=F(ge);{var _e=pe=>{var ye=K(),ve=R(ye);Mr(ve,()=>Bi.sanitize(s()("local_backend.disabled").replace("<a>",'<a href="https://github.com/sveltia/sveltia-cms#enabling-local-development-in-brave" target="_blank">'),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target"]})),T(pe,ye)},fe=pe=>{var ye=Ne();W(ve=>Q(ye,ve),[()=>s()("local_backend.unsupported_browser")]),T(pe,ye)};U(he,pe=>{c(d)?pe(_e):pe(fe,!1)})}T(de,ge)},ee=de=>{var ge=K(),he=R(ge);{var _e=fe=>{var pe=bre(),ye=F(pe);{var ve=Ae=>{var Qe=Ne();W(qe=>Q(Qe,qe),[()=>s()("work_with_local_repo_description",{values:{repo:c(m)}})]),T(Ae,Qe)},Le=Ae=>{var Qe=Ne();W(qe=>Q(Qe,qe),[()=>s()("work_with_local_repo_description_no_repo")]),T(Ae,Qe)};U(ye,Ae=>{c(m)?Ae(ve):Ae(Le,!1)})}T(fe,pe)};U(he,fe=>{a().message||fe(_e)},!0)}T(de,ge)};U(se,de=>{c(u)?de(ee,!1):de(ie)})}var ne=D(se,2);hi(ne,{}),T(G,X)};U(V,G=>{c(b)&&G(Z)})}var J=D(V,2);{let G=_(()=>c(b)?"secondary":"primary"),X=_(()=>c(v)?s()("work_with_test_repo"):s()("sign_in_with_x",{values:{service:c(g).label}}));nt(J,{get variant(){return c(G)},get label(){return c(X)},onclick:async()=>{await lb(c(p))}})}var H=D(J,2);{var Y=G=>{{let X=_(()=>s()("sign_in_with_x_using_pat",{values:{service:c(g).label}}));nt(G,{variant:"secondary",get label(){return c(X)},onclick:()=>{B(f,!0)}})}};U(H,G=>{c(v)||G(Y)})}T(j,q)};U(O,j=>{c(g)?j(L,!1):j(N)},!0)}T($,I)};U(E,$=>{o()?$(C):$(S,!1)})}var A=D(E,2);{var k=$=>{var I=xre(),O=F(I);tt(O,{name:"error"});var N=D(O);W(()=>Q(N,` ${a().message??""}`)),T($,I)};U(A,$=>{a().message&&a().context==="authentication"&&$(k)})}var x=D(w,2);{let $=_(()=>s()("sign_in_using_pat_title")),I=_(()=>({spellcheck:!1,"aria-label":s()("personal_access_token")})),O=_(()=>s()("sign_in")),N=_(()=>!c(h).trim());PN(x,{get title(){return c($)},get textboxAttrs(){return c(I)},get okLabel(){return c(O)},get okDisabled(){return c(N)},onOk:async()=>{await lb(c(p),c(h).trim())},get open(){return c(f)},set open(L){B(f,L,!0)},get value(){return c(h)},set value(L){B(h,L,!0)},children:(L,j)=>{var q=Ne();W(V=>Q(q,V),[()=>s()("sign_in_using_pat_description")]),T(L,q)},$$slots:{default:!0}})}T(t,y),le(),r()}var Tre=M('<img alt="" class="logo svelte-1fwoh7l"/>'),Cre=M('<div role="alert" class="message"> </div>'),Are=M('<div role="alert" class="message"> </div>'),$re=M('<div role="alert" class="message"> </div>'),Ire=M('<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-1fwoh7l"><!></div></div>'),Pre=M('<div role="alert" class="message"> </div>'),Ore=M('<div role="alert" class="message"> </div> <!>',1),Nre=M('<div role="none" class="container svelte-1fwoh7l"><div role="none" class="inner svelte-1fwoh7l"><!> <h1 class="svelte-1fwoh7l">Sveltia CMS</h1> <!></div></div>');const Lre={hash:"svelte-1fwoh7l",code:`.container.svelte-1fwoh7l {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;transition:filter 250ms;}.container[inert].svelte-1fwoh7l {filter:opacity(0);}.container.svelte-1fwoh7l .inner:where(.svelte-1fwoh7l) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-1fwoh7l .logo:where(.svelte-1fwoh7l) {max-width:160px;height:auto;}
505
+ }::selection {background-color:var(--sui-primary-accent-color-translucent);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-primary-accent-color-translucent);z-index:2;}:is(h1, h2, h3, h4, h5, h6) {margin:0;font-weight:var(--sui-font-weight-bold, bold);line-height:var(--sui-line-height-default);}h1 {font-size:32px;}h2 {font-size:28px;}h3 {font-size:24px;}h4 {font-size:20px;}h5 {font-size:16px;}h6 {font-size:12px;}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-t8bml8 a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-t8bml8 {position:absolute;left:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-t8bml8 {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-t8bml8 {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-t8bml8 {display:flex;flex-direction:column;overflow:hidden;}`};function ire(t,e){ae(e,!0),xe(t,rre);let n=P(e,"orientation",3,"horizontal"),r=lt(e,["$$slots","$$events","$$legacy","orientation","children"]);const i=["https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap","https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"];let o=re(void 0);Zt(()=>{const p=globalThis.matchMedia("(prefers-color-scheme: dark)"),{dataset:g}=document.documentElement,m=()=>{g.autoTheming!=="false"&&(g.theme=p.matches?"dark":"light")};m(),p.onchange=()=>{m()},globalThis.setTimeout(()=>{c(o)?.remove()},1e3)});var s=nre();_$(p=>{var g=tre(),m=D(R(g),8);ct(m,17,()=>i,Ur,(v,b)=>{var y=ere(),w=R(y),E=D(w,2);W(()=>{Te(w,"href",c(b)),Te(E,"href",c(b))}),T(v,y)}),T(p,g)});var a=R(s);go(a,"",{},{opacity:"0"}),St(a,p=>B(o,p),()=>c(o));var l=D(a,2),u=p=>p.preventDefault(),d=p=>p.preventDefault(),f=p=>{if(document.documentElement.matches('[data-env="dev"]'))return;const g=p.target;document.documentElement.matches('[data-env="dev"]')||g?.matches("input, textarea")&&"maxLength"in g||g?.closest('[role="textbox"]')?.contentEditable==="true"||p.preventDefault()};xt(l,()=>({...r,role:"none",class:`sui app-shell ${n()??""}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,"svelte-t8bml8");var h=F(l);Fe(h,()=>e.children??ze),T(t,s),le()}var ore=M('<div role="none" class="sui empty-state svelte-1izgvlt"><!></div>');const sre={hash:"svelte-1izgvlt",code:".empty-state.svelte-1izgvlt {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}"};function $r(t,e){xe(t,sre);let n=P(e,"children",3,void 0);var r=ore(),i=F(r);Fe(i,()=>n()??ze),T(t,r)}var are=M('<div><div role="none" class="inner svelte-3h03g8"><!></div></div>');const lre={hash:"svelte-3h03g8",code:".inner.svelte-3h03g8 {display:contents;}"};function is(t,e){xe(t,lre);let n=P(e,"hidden",3,!1),r=P(e,"disabled",3,!1),i=lt(e,["$$slots","$$events","$$legacy","class","hidden","disabled","children"]);var o=are();xt(o,()=>({...i,role:"group",class:`sui group ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,"svelte-3h03g8");var s=F(o),a=F(s);Fe(a,()=>e.children??ze),W(()=>s.inert=r()),T(t,o)}const OR=({fallbackLocale:t="en",initialLocale:e="en"}={})=>{Object.entries(Object.assign({"./locales/en.js":oZ,"./locales/ja.js":aZ})).forEach(([r,{strings:i}])=>{const[,o]=r.match(/([a-zA-Z-]+)\.js/);l0(o,{_sui:i})}),G3({fallbackLocale:t,initialLocale:e})};OR();const NR='<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>',cre=(t,{field:e,pattern:n}={field:"",pattern:""})=>{if(!e)return t;if(e==="fileType")return t.filter(({path:i})=>mh(i)===n);const r=fd(n);return t.filter(i=>{const o=i[e];return r?r.test(String(o??"")):o===n})},ure=(t,{field:e,pattern:n}={field:"",pattern:void 0})=>{if(!e)return t.length?{"*":t}:{};const r=fd(n),i={},o=oe(ue)("other");return t.forEach(s=>{const a=s[e];let l;r?[l=o]=String(a??"").match(r)??[]:l=a,l in i||(i[l]=[]),i[l].push(s)}),Object.fromEntries(Object.entries(i).sort(([s],[a])=>ji(s,a)))},PC=(t,e)=>{const{commitAuthor:{name:n,login:r,email:i}={},commitDate:o}=t;return e==="commit_author"?n||r||i:e==="commit_date"?o:e==="name"?t.name.split(".")[0]:t[e]??""},dre=(t,{key:e,order:n}={})=>{if(!e||!n)return t;const r=[...t],i={commit_author:String,commit_date:Date}[e]||r[0]?.[e]?.constructor||String;return r.sort((o,s)=>{const a=PC(o,e),l=PC(s,e);return i===String?ji(a,l):i===Date?Number(a)-Number(l):a-l}),n==="descending"&&r.reverse(),r},tl=st(!1),ga=st(!1),fre=hn([_o],([t],e)=>{e(!!t.files.length)}),Rv=({collectionName:t,fileName:e,internalPath:n})=>{if(t===void 0)return oe(ue)(n===void 0?"all_assets":"global_assets");const r=mi(t),i=r?Qs(r):t;if(!e)return i;const o=r?cd(r,e):void 0,s=o?hh(o):e;return`${i} › ${s}`},ma=st({type:"grid",showInfo:!0}),wc=hn([tr,mo],([t,e],n)=>{t&&e&&e.internalPath!==void 0?n(t.filter(({folder:r})=>_n(r,e))):n(t?[...t]:[])}),D1=hn([wc,ma],([t,e],n)=>{let r=[...t];r=dre(r,e.sort),r=cre(r,e.filter);const i=ure(r,e.group);_n(oe(D1),i)||n(i)});wc.subscribe(t=>{Ff.set([]),oe(gt).devModeEnabled&&console.info("listedAssets",t)});const xn=st(!1),xs=st(!1),Rh=st(!1),Cd=st(!0),hre=()=>{const t=globalThis.matchMedia("(width < 768px)"),e=globalThis.matchMedia("(768px <= width < 1024px)"),n=globalThis.matchMedia("(1024px <= width)"),r=globalThis.matchMedia("(pointer: fine)"),i=()=>xn.set(t.matches),o=()=>xs.set(e.matches),s=()=>Rh.set(n.matches),a=()=>Cd.set(r.matches);i(),o(),s(),a(),t.addEventListener("change",i),e.addEventListener("change",o),n.addEventListener("change",s),r.addEventListener("change",a)},M1=hn([cc,tl],([t,e])=>t||e),Nw=st(""),xi=st(""),fs=(t=window.location.href)=>{const{origin:e,hash:n}=new URL(t),{pathname:r,searchParams:i}=new URL(`${e}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries(i)}},z1=(t,e)=>{if(!oe(xn)||!document.startViewTransition){e();return}document.startViewTransition({types:[t],update:async()=>{e(),await Mt(50),await new Promise(n=>{Vu(()=>{n(void 0)})})}})},U1=(t,e,n)=>{const{isTrusted:r,oldURL:i,newURL:o}=t;if(!r){e();return}const s=fs(i).path,a=fs(o).path,l=n.test(s)&&n.test(a),u=s.split("/").length,d=a.split("/").length,f=l&&u>d?"backwards":l&&u<d?"forwards":"unknown";z1(f,()=>e())},tn=async(t,{state:e={},replaceState:n=!1,notifyChange:r=!0,transitionType:i="unknown"}={})=>{const{origin:o,pathname:s,hash:a}=window.location,l=`${o}${s}${a}`,u=`${o}${s}#${t}`,d=[{...e,from:l},"",u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&z1(i,()=>{window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:l,newURL:u}))})},ja=(t,e={})=>{const n="backwards";window.history.state?.from?z1(n,()=>{window.history.back()}):tn(t,{...e,transitionType:n})},LR=()=>{const{display_url:t,_siteURL:e}=oe(Rt);window.open(t||e||"/","_blank")},Fv=st({message:"",context:"authentication"}),Wu=st(!0),vu=st(!1),RR=()=>{Fv.set({message:"",context:"authentication"})},Jp=(t,e="authentication")=>{let n=t.cause?.message||oe(ue)("unexpected_error");t.name==="NotFoundError"&&(n=oe(ue)("sign_in_error.not_project_root")),t.name==="AbortError"&&(n=oe(ue)(oe(hd)==="local"?"sign_in_error.picker_dismissed":"sign_in_error.authentication_aborted")),Fv.set({message:n,context:e}),console.error(t.name,t.message,t.cause)},pre=async()=>{RR();const t=await Ei.get("sveltia-cms.user")||await Ei.get("decap-cms-user")||await Ei.get("netlify-cms-user"),e=ln(t);if(e&&!Object.keys(t).length)return;let n=e&&t.backendName?t:void 0;const r=n?.backendName==="local"||n?.backendName==="proxy"?"local":oe(Rt).backend.name;hd.set(r);const i=oe(Dn),{path:o}=fs();let s;if(!n&&i){const{encodedData:a}=o.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(a){tn("",{replaceState:!0});try{const l=JSON.parse(atob(a));ln(l)&&typeof l.token=="string"&&(n={token:l.token},ln(l.prefs)&&(s=l.prefs))}catch{}}}if(n&&i){cr.set(n);const{token:a,refreshToken:l}=n;vu.set(!0);try{n=await i.signIn({token:a,refreshToken:l,auto:!0})}catch{n=void 0,cr.set(void 0)}}if(vu.set(!1),Wu.set(!n),!(!n||!i)){cr.set(n),s&&gt.update(a=>({...a,...s}));try{await i.fetchFiles()}catch(a){[401,403,404].includes(a.cause?.status)?Wu.set(!0):Jp(a,"dataFetch")}}},lb=async(t,e)=>{RR(),hd.set(t);const n=oe(Dn);if(!n)return;let r;vu.set(!0);try{r=await n.signIn({token:e,auto:!1})}catch(i){vu.set(!1),Wu.set(!0),e&&i.cause?.status===401?Jp(new Error("Invalid token",{cause:{message:oe(ue)("sign_in_error.invalid_token")}})):Jp(i);return}if(vu.set(!1),Wu.set(!r),!!r){cr.set(r);try{await n.fetchFiles()}catch(i){Jp(i,"dataFetch")}}},gre=async()=>{await oe(Dn)?.signOut(),await Ei.set("sveltia-cms.user",{}),hd.set(void 0),cr.set(void 0),Wu.set(!0),ld.set(!1);const t=oe(Rt)?.logout_redirect_url;t&&(window.location.href=t)};var mre=M('<div role="alert" class="message svelte-19bz6hh"> </div>'),vre=M('<div role="alert" class="svelte-19bz6hh"> </div>'),_re=M('<div role="alert" class="svelte-19bz6hh"><!></div>'),bre=M('<div role="none"><!></div>'),yre=M("<!> <!> <!>",1),wre=M("<!> <!> <!>",1),xre=M('<div role="alert" class="error svelte-19bz6hh"><!> </div>'),kre=M('<div role="none" class="buttons svelte-19bz6hh"><!> <!></div> <!>',1);const Sre={hash:"svelte-19bz6hh",code:".buttons.svelte-19bz6hh {display:flex;flex-direction:column;align-items:center;gap:12px;}.buttons.svelte-19bz6hh .button {width:280px;}[role=alert].svelte-19bz6hh {display:flex;align-items:center;gap:8px;}[role=alert].error.svelte-19bz6hh {color:var(--sui-error-foreground-color);}"};function Ere(t,e){ae(e,!0),xe(t,Sre);const[n,r]=me(),i=()=>z(Rt,"$siteConfig",n),o=()=>z(vu,"$signingIn",n),s=()=>z(ue,"$_",n),a=()=>z(Fv,"$signInError",n);let l=re(!1),u=re(!1),d=re(!1),f=re(!1),h=re("");const p=_(()=>i()?.backend?.name),g=_(()=>c(p)?wh[c(p)]:null),m=_(()=>i()?.backend?.repo?.split("/")?.[1]),v=_(()=>c(p)==="test-repo"),b=_(()=>c(l)&&!c(v));Zt(()=>{const{hostname:$}=window.location;B(l,$==="127.0.0.1"||$==="localhost"||$.endsWith(".localhost"),!0),B(u,"showDirectoryPicker"in window),B(d,navigator.userAgentData?.brands.some(({brand:I})=>I==="Brave")??!1,!0),pre()});var y=kre(),w=R(y),E=F(w);{var C=$=>{var I=mre(),O=F(I);W(N=>Q(O,N),[()=>s()("signing_in")]),T($,I)},S=$=>{var I=K(),O=R(I);{var N=j=>{var q=vre(),V=F(q);W(Z=>Q(V,Z),[()=>s()("config.error.unsupported_backend",{values:{name:c(p)}})]),T(j,q)},L=j=>{var q=wre(),V=R(q);{var Z=G=>{var X=yre(),te=R(X);{let de=_(()=>s()("work_with_local_repo")),ge=_(()=>!c(u));nt(te,{variant:"primary",get label(){return c(de)},get disabled(){return c(ge)},onclick:async()=>{await lb("local")}})}var se=D(te,2);{var ie=de=>{var ge=_re(),he=F(ge);{var _e=pe=>{var ye=K(),ve=R(ye);Mr(ve,()=>Bi.sanitize(s()("local_backend.disabled").replace("<a>",'<a href="https://github.com/sveltia/sveltia-cms#enabling-local-development-in-brave" target="_blank">'),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target"]})),T(pe,ye)},fe=pe=>{var ye=Ne();W(ve=>Q(ye,ve),[()=>s()("local_backend.unsupported_browser")]),T(pe,ye)};U(he,pe=>{c(d)?pe(_e):pe(fe,!1)})}T(de,ge)},ee=de=>{var ge=K(),he=R(ge);{var _e=fe=>{var pe=bre(),ye=F(pe);{var ve=Ae=>{var Qe=Ne();W(qe=>Q(Qe,qe),[()=>s()("work_with_local_repo_description",{values:{repo:c(m)}})]),T(Ae,Qe)},Le=Ae=>{var Qe=Ne();W(qe=>Q(Qe,qe),[()=>s()("work_with_local_repo_description_no_repo")]),T(Ae,Qe)};U(ye,Ae=>{c(m)?Ae(ve):Ae(Le,!1)})}T(fe,pe)};U(he,fe=>{a().message||fe(_e)},!0)}T(de,ge)};U(se,de=>{c(u)?de(ee,!1):de(ie)})}var ne=D(se,2);hi(ne,{}),T(G,X)};U(V,G=>{c(b)&&G(Z)})}var J=D(V,2);{let G=_(()=>c(b)?"secondary":"primary"),X=_(()=>c(v)?s()("work_with_test_repo"):s()("sign_in_with_x",{values:{service:c(g).label}}));nt(J,{get variant(){return c(G)},get label(){return c(X)},onclick:async()=>{await lb(c(p))}})}var H=D(J,2);{var Y=G=>{{let X=_(()=>s()("sign_in_with_x_using_pat",{values:{service:c(g).label}}));nt(G,{variant:"secondary",get label(){return c(X)},onclick:()=>{B(f,!0)}})}};U(H,G=>{c(v)||G(Y)})}T(j,q)};U(O,j=>{c(g)?j(L,!1):j(N)},!0)}T($,I)};U(E,$=>{o()?$(C):$(S,!1)})}var A=D(E,2);{var k=$=>{var I=xre(),O=F(I);tt(O,{name:"error"});var N=D(O);W(()=>Q(N,` ${a().message??""}`)),T($,I)};U(A,$=>{a().message&&a().context==="authentication"&&$(k)})}var x=D(w,2);{let $=_(()=>s()("sign_in_using_pat_title")),I=_(()=>({spellcheck:!1,"aria-label":s()("personal_access_token")})),O=_(()=>s()("sign_in")),N=_(()=>!c(h).trim());PN(x,{get title(){return c($)},get textboxAttrs(){return c(I)},get okLabel(){return c(O)},get okDisabled(){return c(N)},onOk:async()=>{await lb(c(p),c(h).trim())},get open(){return c(f)},set open(L){B(f,L,!0)},get value(){return c(h)},set value(L){B(h,L,!0)},children:(L,j)=>{var q=Ne();W(V=>Q(q,V),[()=>s()("sign_in_using_pat_description")]),T(L,q)},$$slots:{default:!0}})}T(t,y),le(),r()}var Tre=M('<img alt="" class="logo svelte-1fwoh7l"/>'),Cre=M('<div role="alert" class="message"> </div>'),Are=M('<div role="alert" class="message"> </div>'),$re=M('<div role="alert" class="message"> </div>'),Ire=M('<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-1fwoh7l"><!></div></div>'),Pre=M('<div role="alert" class="message"> </div>'),Ore=M('<div role="alert" class="message"> </div> <!>',1),Nre=M('<div role="none" class="container svelte-1fwoh7l"><div role="none" class="inner svelte-1fwoh7l"><!> <h1 class="svelte-1fwoh7l">Sveltia CMS</h1> <!></div></div>');const Lre={hash:"svelte-1fwoh7l",code:`.container.svelte-1fwoh7l {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;transition:filter 250ms;}.container[inert].svelte-1fwoh7l {filter:opacity(0);}.container.svelte-1fwoh7l .inner:where(.svelte-1fwoh7l) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-1fwoh7l .logo:where(.svelte-1fwoh7l) {max-width:160px;height:auto;}
506
506
  @media (width < 768px) {.container.svelte-1fwoh7l .logo:where(.svelte-1fwoh7l) {max-width:120px;}
507
507
  }.container.svelte-1fwoh7l h1:where(.svelte-1fwoh7l) {font-size:48px;}.container.svelte-1fwoh7l .logo:where(.svelte-1fwoh7l) ~ h1:where(.svelte-1fwoh7l) {font-size:var(--sui-font-size-xxx-large);}.container.svelte-1fwoh7l .error:where(.svelte-1fwoh7l) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);line-height:1.5;text-align:center;}.container.svelte-1fwoh7l .message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;}`};function Rre(t,e){ae(e,!0),xe(t,Lre);const[n,r]=me(),i=()=>z(ue,"$_",n),o=()=>z(cr,"$user",n),s=()=>z(ld,"$dataLoaded",n),a=()=>z(Rt,"$siteConfig",n),l=()=>z(Zy,"$siteConfigError",n),u=()=>z(Vy,"$prefsError",n),d=()=>z(gt,"$prefs",n),f=()=>z(Fv,"$signInError",n),h=()=>z(rN,"$inAuthPopup",n),p=()=>z(Wu,"$unauthenticated",n),g=()=>z(ts,"$dataLoadedProgress",n);De(()=>{Ye(xi,i()("welcome_to_sveltia_cms"))});var m=Nre(),v=F(m),b=F(v);{var y=S=>{const A=_(()=>a()?.logo_url);var k=Tre();W(x=>Te(k,"src",x),[()=>c(A)||`data:image/svg+xml;base64,${btoa(NR)}`]),T(S,k)};U(b,S=>{(a()||l())&&S(y)})}var w=D(b,4);{var E=S=>{var A=Cre(),k=F(A);W(x=>Q(k,`${l().message??""}
508
508
  ${x??""}`),[()=>i()("config.error.try_again")]),T(S,A)},C=S=>{var A=K(),k=R(A);{var x=I=>{var O=Are(),N=F(O);W(L=>Q(N,L),[()=>i()(`prefs.error.${u().type}`)]),T(I,O)},$=I=>{var O=K(),N=R(O);{var L=q=>{var V=$re(),Z=F(V);W(J=>Q(Z,J),[()=>i()("loading_site_config")]),T(q,V)},j=q=>{var V=K(),Z=R(V);{var J=Y=>{var G=Ire(),X=F(G),te=F(X),se=D(X,2),ie=F(se);Mr(ie,()=>Bi.sanitize(Nt.parseInline(f().message),{ALLOWED_TAGS:["a","code"],ALLOWED_ATTR:["href"]})),W(ee=>Q(te,ee),[()=>i()("loading_site_data_error")]),T(Y,G)},H=Y=>{var G=K(),X=R(G);{var te=ie=>{var ee=Pre(),ne=F(ee);W(de=>Q(ne,de),[()=>i()("authorizing")]),T(ie,ee)},se=ie=>{var ee=K(),ne=R(ee);{var de=he=>{Ere(he,{})},ge=he=>{var _e=K(),fe=R(_e);{var pe=ye=>{var ve=Ore(),Le=R(ve),Ae=F(Le),Qe=D(Le,2);{var qe=Ve=>{UJ(Ve,{get now(){return g()}})};U(Qe,Ve=>{g()!==void 0&&Ve(qe)})}W(Ve=>Q(Ae,Ve),[()=>i()("loading_site_data")]),T(ye,ve)};U(fe,ye=>{s()||ye(pe)},!0)}T(he,_e)};U(ne,he=>{!o()||p()?he(de):he(ge,!1)},!0)}T(ie,ee)};U(X,ie=>{h()?ie(te):ie(se,!1)},!0)}T(Y,G)};U(Z,Y=>{f().message&&f().context==="dataFetch"?Y(J):Y(H,!1)},!0)}T(q,V)};U(N,q=>{!a()||!d()?q(L):q(j,!1)},!0)}T(I,O)};U(k,I=>{u()?I(x):I($,!1)},!0)}T(S,A)};U(w,S=>{l()?S(E):S(C,!1)})}W(()=>m.inert=o()&&s()),T(t,m),le(),r()}var Fre=M(" <!>",1),Dre=M('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function Mre(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(Dn,"$backend",n),o=()=>z(Rt,"$siteConfig",n),s=()=>z(ue,"$_",n),a=300*1e3;let l=0,u=re(!1),d=re("none");const f=async()=>{i()?.checkStatus&&B(d,await i().checkStatus(),!0)},h=()=>{f(),l=window.setInterval(()=>{f()},a)},p=()=>{window.clearInterval(l),B(d,"none")},g=()=>{c(u)&&(i()?.checkStatus&&!i().repository?.isSelfHosted?h():p())};Zt(()=>(B(u,!0),()=>{p()})),De(()=>{c(u),i(),o(),g()});var m=K(),v=R(m);{var b=y=>{var w=Dre(),E=R(w);{let C=_(()=>c(d)==="major"?"error":"warning");Zu(E,()=>({"--sui-infobar-message-justify-content":"center"})),hv(E.lastChild,{get status(){return c(C)},children:(S,A)=>{var k=Fre(),x=R(k),$=D(x);{let I=_(()=>s()("details"));nt($,{variant:"link",get label(){return c(I)},onclick:()=>{window.open(i()?.statusDashboardURL,"_blank")}})}W(I=>Q(x,`${I??""} `),[()=>s()(`backend_status.${c(d)}_incident`,{values:{service:i()?.label}})]),T(S,k)},$$slots:{default:!0}})}T(y,w)};U(v,y=>{["minor","major"].includes(c(d))&&y(b)})}T(t,m),le(),r()}var zre=M(" <!>",1),Ure=M('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function jre(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(ue,"$_",n),o=3600*1e3,s=600*1e3;let a=0,l=0,u=re(!1);const d=async()=>{try{const g=await fetch("https://unpkg.com/@sveltia/cms/package.json");if(!g.ok)return;const{version:m}=await g.json();m&&m!==Ly&&(l=window.setTimeout(()=>{B(u,!0)},s))}catch{}};Zt(()=>{if(document.querySelector('script[src^="https://unpkg.com/@sveltia/cms"]'))return d(),a=window.setInterval(()=>{d()},o),()=>{window.clearInterval(a),window.clearTimeout(l)}});var f=K(),h=R(f);{var p=g=>{var m=Ure(),v=R(m);Zu(v,()=>({"--sui-infobar-message-justify-content":"center"})),hv(v.lastChild,{children:(b,y)=>{var w=zre(),E=R(w),C=D(E);{let S=_(()=>i()("update_now"));nt(C,{variant:"link",get label(){return c(S)},onclick:()=>{window.location.reload()}})}W(S=>Q(E,`${S??""} `),[()=>i()("update_available")]),T(b,w)},$$slots:{default:!0}}),T(g,m)};U(h,g=>{c(u)&&g(p)})}T(t,f),le(),r()}var Bre=M("<!> <!> <!>",1),qre=M("<!> <!>",1);function FR(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(ue,"$_",n),o=k=>{var x=Bre(),$=R(x);{let N=_(()=>c(f)?i()("public_url"):i()("public_urls")),L=_(()=>!c(h).length);bt($,{get label(){return c(N)},get disabled(){return c(L)},onclick:()=>{y(m,i()("asset_url_copied"),i()("asset_urls_copied"))}})}var I=D($,2);{let N=_(()=>c(f)?i()("file_path"):i()("file_paths"));bt(I,{get label(){return c(N)},onclick:()=>{y(v,i()("asset_path_copied"),i()("asset_paths_copied"))}})}var O=D(I,2);{let N=_(()=>i()("file_data")),L=_(()=>!c(u));bt(O,{get label(){return c(N)},get disabled(){return c(L)},onclick:()=>{y(b,i()("asset_data_copied"),i()("asset_data_copied"))}})}T(k,x)};let s=P(e,"assets",19,()=>[]),a=P(e,"useButton",3,!0),l=re(Ut([])),u=re(!1);const d=Ut({show:!1,text:"",status:"success"}),f=_(()=>s().length===1),h=_(()=>c(l).filter(({publicURL:k})=>!!k).map(({publicURL:k})=>k));let p;const g=async()=>{if(p=void 0,!c(f))return!1;const k=await Za(s()[0]),{type:x}=k;return p=k,kf(x)?!0:Zo.includes(x)?typeof navigator.clipboard.write=="function":!1},m=async()=>{await navigator.clipboard.writeText(c(h).join(`
@@ -640,7 +640,7 @@ td.svelte-5r6rgh {border-width:0;}th.svelte-5r6rgh {padding-block:4px;color:var(
640
640
  `),[g]=p.match(s)??[];if(!g||!p.startsWith(g))return null;const m=g.match(s),v=h+g.split(`
641
641
  `).length-1;return m?(f.append(new e(a(m))),[!0,v]):[!1,v]},replace:()=>{},export:u}:{type:"text-match",dependencies:[e],importRegExp:s,regExp:s,replace:(d,f)=>{d.replace(new e(a(f)))},export:u}},VC=new Map,cue=t=>{const e=aue(t);return{node:e,createNode:n=>new e(n),transformer:lue({componentDef:t,CustomNode:e})}};class uue{constructor(e){const{id:n}=e,r=VC.get(n),i=r??cue(e);r||VC.set(n,i),Object.assign(this,{...e,...i})}}var due=M('<div role="none"><!></div>');const fue={hash:"svelte-14ielax",code:`.wrapper.svelte-14ielax {display:contents;}.wrapper.minimal.svelte-14ielax :is([role=textbox], textarea) {overflow:auto;max-height:240px;}
642
642
  @media (width < 768px) {.wrapper.svelte-14ielax .sui.text-editor {margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}.wrapper.svelte-14ielax :is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
643
- }`};function hue(t,e){ae(e,!0),xe(t,fue);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n),{widgetContext:o=void 0}=br("field-editor")??{},s=o==="markdown-editor-component";let a=P(e,"currentValue",15),l=P(e,"required",3,!0),u=P(e,"readonly",3,!1),d=P(e,"invalid",3,!1),f=re(void 0),h=re(""),p=0;const g=_(()=>ot(e.fieldConfig.modes,()=>[...Xce],!0)),m=_(()=>ot(e.fieldConfig.buttons,()=>[...eue],!0)),v=_(()=>ot(e.fieldConfig.editor_components,()=>[...nue,...wg.keys()],!0)),b=_(()=>ot(e.fieldConfig.linked_images,!0)),y=_(()=>ot(e.fieldConfig.minimal,!1)),w=_(()=>c(g).map(j=>Qce[j]).filter(Boolean)),E=_(()=>[...c(m),...c(v).includes("code-block")?["code-block"]:[]].map(j=>tue[j]).filter(Boolean)),C=_(()=>s?[]:c(v).map(j=>gO(j==="image"&&c(b)?"linked-image":j)).filter(j=>!!j).map(j=>new uue(j))),S=_(()=>c(C).find(({id:j})=>j==="image"||j==="linked-image")),A=({target:j,images:q})=>{const V=j?.closest("div"),Z=Ev(V);!c(S)||!V?.matches(".lexical-root")||!Z||q.forEach(({file:J,src:H,alt:Y=""})=>{J&&(H=URL.createObjectURL(J)),Z.update(()=>{_d([c(S).createNode({src:H,alt:Y}),Nn()])},{onUpdate:async()=>{if(!J)return;await Mt(250),V.querySelector(`img[src="${H}"]`)?.closest(".drop-target")?.dispatchEvent(new CustomEvent("Select",{detail:{files:[J]}}))}})})},k=async j=>{const{target:q,clipboardData:V}=j,Z=V?.items;if(!Z)return;let J=[];const H=[...Z].findIndex(({kind:G,type:X})=>G==="file"&&Zo.includes(X)),Y=[...Z].findIndex(({kind:G,type:X})=>G==="string"&&X==="text/html");if(H>-1&&Y>-1){const G=H>-1?Z[H].getAsFile():void 0;if(!G)return;Z.clear(),j.stopPropagation();let X="",te=G.name;const se=await new Promise(ie=>{Z[Y].getAsString(ee=>{ie(new DOMParser().parseFromString(ee,"text/html").querySelector("img"))})});if(se&&(X=se.alt,/^https?:/.test(se.src))){const ie=new URL(se.src).pathname.split("/").pop()??"";(Ry.test(ie)||g7.test(ie))&&(te=ie)}J=[{file:new File([G],te,{type:G.type}),alt:X}]}else J=[...V.files].filter(({type:G})=>Zo.includes(G)).map(G=>({file:G}));J.length&&(J=J.map(({file:G,alt:X},te)=>{if(G?.name==="image.png"){const{year:se,month:ie,day:ee,hour:ne,minute:de,second:ge}=ql(),he=J.length>1?`-${te+1}`:"",_e=`${se}${ie}${ee}-${ne}${de}${ge}${he}.png`;G=new File([G],_e,{type:G.type})}return{file:G,alt:X}}),A({target:q,images:J}))},x=async j=>{const{target:q,dataTransfer:V}=j,Z=V?.files;let J=[];if(Z?.length)J=[...Z].filter(({type:H})=>Zo.includes(H)).map(H=>({file:H}));else{const H=j.dataTransfer?.getData("text/html");if(H){const Y=new DOMParser().parseFromString(H,"text/html").querySelector("img");if(Y){const{src:G,alt:X}=Y,te=G.match(/^data:(?<type>image\/.+?);base64,.+/);let se;if(te){const ie=te.groups?.type??"";if(Zo.includes(ie))try{const ee=await(await fetch(G)).blob(),{year:ne,month:de,day:ge,hour:he,minute:_e,second:fe}=ql(),pe=ie.split("/")[1],ye=`${ne}${de}${ge}-${he}${_e}${fe}.${pe}`;se=new File([ee],ye,{type:ie})}catch{return}}J=[{file:se,src:G,alt:X}]}}}J.length&&A({target:q,images:J})},$=()=>{const j=typeof a()=="string"?a():"";c(h)!==j&&B(h,j,!0),!(!i()||s)&&(window.clearTimeout(p),p=window.setTimeout(()=>{Object.keys(i().extraValues[e.locale]??{}).forEach(q=>{const[V]=q.match(Xf)??[];V&&!c(f)?.querySelector(`[data-key-path-prefix="${V}"]`)&&delete i().extraValues[e.locale][q]})},500))},I=()=>{const j=c(h);a()!==j&&a(j)};De(()=>{a(),Ce(()=>{$()})}),De(()=>{c(h),Ce(()=>{I()})});var O=due();let N;var L=F(O);vn(L,Mt,null,j=>{var q=K(),V=R(q);_r(V,()=>JSON.stringify(e.fieldConfig),Z=>{Kne(Z,{get lang(){return e.locale},get modes(){return c(w)},get buttons(){return c(E)},get components(){return c(C)},flex:!0,get readonly(){return u()},get required(){return l()},get invalid(){return d()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,onpastecapture:J=>{k(J)},ondrop:J=>{x(J)},get value(){return c(h)},set value(J){B(h,J,!0)}})}),T(j,q)}),St(O,j=>B(f,j),()=>c(f)),W(j=>N=gn(O,1,"wrapper svelte-14ielax",null,N,j),[()=>({minimal:c(y)})]),T(t,O),le(),r()}function pue(){return{useNewRenderer:!0,renderer:{heading(...t){return Nt.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return Nt.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return Nt.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}var gue=M('<div role="none" class="svelte-1f46x0y"><!></div>');const mue={hash:"svelte-1f46x0y",code:'[role="document"] div.svelte-1f46x0y :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role="document"] div.svelte-1f46x0y :is(video, img) {max-width:100%;max-height:100%;}[role="document"] div.svelte-1f46x0y :is(a:has(img)) {display:inline-block;}[role="document"] div.svelte-1f46x0y :is(a:has(img)) img {pointer-events:none;}'};function vue(t,e){ae(e,!0),xe(t,mue);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n);let o=re("");const s=_(()=>i()?.originalEntry),a=_(()=>i()?.collectionName??""),l=_(()=>i()?.fileName),u=_(()=>ot(e.fieldConfig.sanitize_preview,!1)),d={breaks:!0,async:!0,walkTokens:async g=>{if(g.type==="image"){const m=await Nu({value:g.href,entry:c(s),collectionName:c(a),fileName:c(l)});m&&(g.href=m)}}};Nt.use(pue()),De(()=>{(async()=>B(o,await Nt.parse(e.currentValue??"",d),!0))()});var f=gue(),h=F(f);{var p=g=>{var m=K(),v=R(m);Mr(v,()=>c(u)?Bi.sanitize(c(o)):c(o)),T(g,m)};U(h,g=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&g(p)})}T(t,f),le(),r()}function _ue(t,e){ae(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),o=P(e,"invalid",3,!1),s=re(void 0),a=re("");const l=_(()=>ot(e.fieldConfig.value_type,"int")),u=_(()=>e.fieldConfig.min),d=_(()=>e.fieldConfig.max),f=_(()=>ot(e.fieldConfig.step,1)),h=_(()=>c(l)==="int"||c(l)==="float"),p=()=>{if(n()!==void 0){if(c(h)&&c(s)!==n())if(typeof n()=="number")B(s,n(),!0);else if(typeof n()=="string"){const w=n().trim()?Number(n()):NaN;B(s,Number.isNaN(w)?void 0:w,!0)}else B(s,void 0);!c(h)&&c(a)!==n()&&B(a,String(n()),!0)}},g=()=>{let w;c(h)?c(s)===void 0?w=NaN:c(l)==="int"?w=Number.parseInt(c(h)?String(c(s)):c(a),10):w=Number.parseFloat(c(h)?String(c(s)):c(a)):w=c(a),c(h)&&Number.isNaN(w)&&(w=null),n()!==w&&n(w)};De(()=>{n(),Ce(()=>{p()})}),De(()=>{c(a),Ce(()=>{g()})}),De(()=>{c(s),Ce(()=>{g()})});var m=K(),v=R(m);{var b=w=>{Zne(w,{get min(){return c(u)},get max(){return c(d)},get step(){return c(f)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return c(s)},set value(E){B(s,E,!0)}})},y=w=>{nr(w,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return c(a)},set value(E){B(a,E,!0)}})};U(v,w=>{c(h)?w(b):w(y,!1)})}T(t,m),le()}var bue=M('<p dir="auto"><!></p>');function yue(t,e){ae(e,!0);const n=_(()=>ot(e.fieldConfig.value_type,"int")),r=_(()=>fh(e.locale)),i=_(()=>Intl.NumberFormat(c(r)));var o=K(),s=R(o);{var a=l=>{var u=bue(),d=F(u);{var f=p=>{var g=Ne();W(m=>Q(g,m),[()=>c(i).format(Number(e.currentValue))]),T(p,g)},h=p=>{var g=Ne();W(()=>Q(g,e.currentValue)),T(p,g)};U(d,p=>{c(n)==="int"||c(n)==="float"?p(f):p(h,!1)})}W(()=>{Te(u,"lang",e.locale),u.dir=u.dir}),T(l,u)};U(s,l=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&l(a)})}T(t,o),le()}const SF=t=>{const{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,isIndexFile:s}=oe(rt),{defaultLocale:a}=(i??r)._i18n,l={...La(t),...La(o[a])},u={collectionName:e,fileName:n,valueMap:l,isIndexFile:s},d=[];return Object.keys(l).forEach(f=>{const h=$n({...u,keyPath:f});if(!h)return;const{widget:p="text",i18n:g=!1}=h;["text","string","markdown"].includes(p)&&[!0,"translate"].includes(g)&&(l[f]=t[f]??""),([!1,"none"].includes(g)||d.some(m=>new RegExp(`^${Qt(m)}\\b`).test(f)))&&(delete l[f],d.push(f))}),l},EF=t=>{rt.update(e=>{const{fields:n,currentLocales:r,currentValues:i,validities:o}=e,s=!r[t];if(s&&!i[t]){const{collectionName:a,fileName:l,originalValues:u}=e,d=jh(n,t);return{...e,currentLocales:{...r,[t]:s},originalValues:{...u,[t]:d},currentValues:{...i,[t]:W1({draft:{collectionName:a,fileName:l},locale:t,target:SF(d)})}}}return{...e,currentLocales:{...r,[t]:s},validities:{...o,[t]:{}}}})},wue=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s})=>{const a={collectionName:t,fileName:e,keyPath:"",valueMap:r,isIndexFile:i};return s?s.replaceAll(/{{(.+?)}}/g,(l,u)=>{const[d,...f]=u.split(/\s*\|\s*/);return dd({...a,keyPath:`${n}.${d.replace(/^fields\./,"")}`,locale:o,transformations:f})}):IO({valueMap:r,locale:o,keyPath:n,keyPathRegex:new RegExp(`^${Qt(n)}\\.`),getFieldArgs:a})};var xue=M('<div role="none" class="summary svelte-v8qxb5"><!></div>'),kue=M('<div role="group" class="wrapper svelte-v8qxb5"><!> <div role="none" class="item-list"><!></div></div>'),Sue=M("<!> <!> <!>",1);const Eue={hash:"svelte-v8qxb5",code:".wrapper.svelte-v8qxb5 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-v8qxb5 > .group {margin-top:8px;}.summary.svelte-v8qxb5 {padding:8px;}"};function Tue(t,e){const n=dr();ae(e,!0),xe(t,Eue);const[r,i]=me(),o=()=>z(rt,"$entryDraft",r),s=()=>z(ue,"$_",r),a=()=>z(xn,"$isSmallScreen",r),{widgetContext:l,valueStoreKey:u="currentValues"}=br("field-editor")??{};let d=P(e,"required",3,!0),f=re(void 0);const h=_(()=>e.fieldConfig.name),p=_(()=>ot(e.fieldConfig.i18n,!1)),g=_(()=>e.fieldConfig.collapsed),m=_(()=>e.fieldConfig.summary),v=_(()=>e.fieldConfig.fields),b=_(()=>e.fieldConfig.types),y=_(()=>ot(e.fieldConfig.typeKey,"type")),w=_(()=>o()?.isIndexFile??!1),E=_(()=>o()?.collection),C=_(()=>o()?.collectionName??""),S=_(()=>o()?.collectionFile),A=_(()=>o()?.fileName),k=_(()=>(c(S)??c(E))?._i18n??ws),x=_(()=>c(k).defaultLocale),$=_(()=>er(o()?.[u][e.locale])??{}),I=_(()=>({collectionName:c(C),fileName:c(A),valueMap:c($),isIndexFile:c(w)})),O=_(()=>Object.entries(c($)).some(([fe,pe])=>!!fe.startsWith(`${e.keyPath}.`)&&(pe!==null||$n({...c(I),keyPath:fe})?.widget==="object"))),N=_(()=>l==="markdown-editor-component"||e.locale===c(x)||c(p)!==!1),L=_(()=>`${e.keyPath}#`),j=_(()=>o()?.expanderStates?._[c(L)]??!0),q=_(()=>Array.isArray(c(b))),V=_(()=>`${e.keyPath}.${c(y)}`),Z=_(()=>c(q)?c(b)?.find(({name:fe})=>fe===c($)[c(V)]):void 0),J=_(()=>(c(q)?c(Z)?.fields:c(v))??[]),H=_(()=>c(q)&&c(Z)?.summary||c(m)),Y=_(()=>e.locale!==c(x)&&c(p)==="duplicate"),G=()=>{const fe=c(L);Wo({[fe]:wF({key:fe,locale:e.locale,collapsed:c(g)})})},X=async({type:fe}={})=>{Ye(wo,!1),fe&&(Object.keys(o()?.[u]??{}).forEach(ve=>{(ve===e.locale||c(p)==="duplicate")&&Ft(rt,Ce(o)[u][ve][c(V)]=fe,Ce(o))}),await iu());const pe=Object.fromEntries(Object.entries(jh(c(J),e.locale)).map(([ve,Le])=>[`${e.keyPath}.${ve}`,Le])),ye=e.locale===c(x)?pe:SF(pe);Object.entries(o()?.[u]??{}).forEach(([ve,Le])=>{(ve===e.locale||c(p)==="duplicate")&&(Ft(rt,Ce(o)[u][ve]=Object.assign(Le,La({...ye,...Le})),Ce(o)),delete o()[u][ve][e.keyPath])}),Ye(wo,!0)},te=()=>{Ye(wo,!1),Object.entries(o()?.[u]??{}).forEach(([fe,pe])=>{(fe===e.locale||c(p)==="duplicate")&&(Object.keys(pe).forEach(ye=>{ye.startsWith(`${e.keyPath}.`)&&(Ft(rt,Ce(o)[u][fe][ye]=null,Ce(o)),delete o()?.[u][fe][ye])}),Ft(rt,Ce(o)[u][fe][e.keyPath]=null,Ce(o)))}),Ye(wo,!0)},se=()=>wue({...c(I),keyPath:e.keyPath,locale:e.locale,summaryTemplate:c(H)});Zt(()=>{G()});var ie=Sue(),ee=R(ie);{var ne=fe=>{{let pe=_(()=>s()("add_x",{values:{name:e.fieldLabel||c(h)}}));kh(fe,{get label(){return c(pe)},get checked(){return c(O)},get disabled(){return c(Y)},onChange:({detail:{checked:ye}})=>{ye?X():te()}})}};U(ee,fe=>{!c(q)&&!d()&&fe(ne)})}var de=D(ee,2);{var ge=fe=>{Dw(fe,{get disabled(){return c(Y)},get fieldConfig(){return e.fieldConfig},addItem:X})};U(de,fe=>{c(q)&&!c(O)&&fe(ge)})}var he=D(de,2);{var _e=fe=>{var pe=kue(),ye=F(pe);{const Ae=Ve=>{var $e=K(),Se=R($e);{var Ue=Ie=>{{const We=ke=>{tt(ke,{name:"close"})};let be=_(()=>s()("remove"));nt(Ie,{size:"small",iconic:!0,get disabled(){return c(Y)},get"aria-label"(){return c(be)},onclick:()=>{te()},startIcon:We,$$slots:{startIcon:!0}})}};U(Se,Ie=>{c(q)&&Ie(Ue)})}T(Ve,$e)};let Qe=_(()=>c(q)?c(Z)?.label||c(Z)?.name:""),qe=_(()=>c(J).length?()=>Wo({[c(L)]:!c(j)}):void 0);vF(ye,{get label(){return c(Qe)},get controlId(){return`object-${n}-item-list`},get expanded(){return c(j)},get toggleExpanded(){return c(qe)},endContent:Ae,$$slots:{endContent:!0}})}var ve=D(ye,2),Le=F(ve);vn(Le,()=>Fu(c(f)),null,Ae=>{var Qe=K(),qe=R(Qe);{var Ve=Se=>{var Ue=K(),Ie=R(Ue);ct(Ie,17,()=>c(J),We=>We.name,(We,be)=>{No(We,{children:(ke,Oe)=>{{let et=_(()=>[e.keyPath,c(be).name].join("."));Uv(ke,{get keyPath(){return c(et)},get locale(){return e.locale},get fieldConfig(){return c(be)}})}},$$slots:{default:!0}})}),T(Se,Ue)},$e=Se=>{const Ue=_(se);var Ie=K(),We=R(Ie);{var be=ke=>{var Oe=xue(),et=F(Oe);{let Ze=_(()=>a()?2:1);jr(et,{get lines(){return c(Ze)},children:(Ee,Me)=>{var Je=Ne();W(()=>Q(Je,c(Ue))),T(Ee,Je)},$$slots:{default:!0}})}W(()=>Te(Oe,"id",`object-${n}-summary`)),T(ke,Oe)};U(We,ke=>{c(Ue)&&ke(be)})}T(Se,Ie)};U(qe,Se=>{c(j)?Se(Ve):Se($e,!1)})}T(Ae,Qe)}),St(ve,Ae=>B(f,Ae),()=>c(f)),W(()=>{Te(pe,"aria-labelledby",c(j)?void 0:`object-${n}-summary`),Te(ve,"id",`object-${n}-item-list`)}),T(fe,pe)};U(he,fe=>{(!(!d()||c(q))||c(O))&&c(N)&&fe(_e)})}T(t,ie),le(),i()}function Cue(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n),o=_(()=>e.fieldConfig.fields),s=_(()=>e.fieldConfig.types),a=_(()=>ot(e.fieldConfig.typeKey,"type")),l=_(()=>er(i()?.currentValues[e.locale])??{}),u=_(()=>Object.entries(c(l)).some(([y,w])=>!!y.startsWith(`${e.keyPath}.`)&&!!w)),d=_(()=>Array.isArray(c(s))),f=_(()=>`${e.keyPath}.${c(a)}`),h=_(()=>c(d)?c(s)?.find(({name:y})=>y===c(l)[c(f)]):void 0),p=_(()=>c(h)?c(h).label||c(h).name:void 0),g=_(()=>(c(d)?c(h)?.fields:c(o))??[]);var m=K(),v=R(m);{var b=y=>{kF(y,{get label(){return c(p)},children:(w,E)=>{var C=K(),S=R(C);ct(S,17,()=>c(g),A=>A.name,(A,k)=>{No(A,{children:(x,$)=>{{let I=_(()=>[e.keyPath,c(k).name].join("."));ek(x,{get keyPath(){return c(I)},get locale(){return e.locale},get fieldConfig(){return c(k)}})}},$$slots:{default:!0}})}),T(w,C)},$$slots:{default:!0}})};U(v,y=>{c(u)&&y(b)})}T(t,m),le(),r()}function Aue(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n),{valueStoreKey:o="currentValues"}=br("field-editor")??{};let s=P(e,"required",3,!0),a=P(e,"readonly",3,!1),l=P(e,"invalid",3,!1);const u=_(()=>e.fieldConfig.i18n),d=_(()=>e.fieldConfig.max),f=_(()=>ot(e.fieldConfig.dropdown_threshold,5)),h=w=>{i()&&Object.keys(er(i()[o])??{}).forEach(E=>{c(u)!=="duplicate"&&E!==e.locale||yF({locale:E,valueStoreKey:o,keyPath:e.keyPath,manipulate:w})})},p=w=>{h(({valueList:E})=>{E.push(w)})},g=w=>{h(({valueList:E})=>{E.splice(E.indexOf(w),1)})};var m=K(),v=R(m);{var b=w=>{lX(w,{get disabled(){return a()},get readonly(){return a()},get required(){return s()},get invalid(){return l()},get options(){return e.options},get values(){return e.currentValue},get max(){return c(d)},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onAddValue:({detail:{value:E}})=>{p(E)},onRemoveValue:({detail:{value:E}})=>{g(E)}})},y=w=>{JZ(w,{get"aria-labelledby"(){return`${e.fieldId??""}-label`},children:(E,C)=>{var S=K(),A=R(S);ct(A,17,()=>e.options,({label:k,value:x})=>x,(k,x)=>{let $=()=>c(x).label,I=()=>c(x).value;{let O=_(()=>e.currentValue.includes(I()));kh(k,{get label(){return $()},get value(){return I()},get readonly(){return a()},get required(){return s()},get invalid(){return l()},get checked(){return c(O)},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{checked:N}})=>{N?p(I()):g(I())}})}}),T(E,S)},$$slots:{default:!0}})};U(v,w=>{e.options.length>c(f)?w(b):w(y,!1)})}T(t,m),le(),r()}function $ue(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(ue,"$_",n);let o=P(e,"currentValue",15),s=P(e,"required",3,!0),a=P(e,"readonly",3,!1),l=P(e,"invalid",3,!1),u=P(e,"options",7);const d=_(()=>ot(e.fieldConfig.dropdown_threshold,5));let f=re(void 0);De(()=>{c(f)||B(f,u()[0]?.value!==void 0?typeof u()[0]?.value:"string",!0)}),De(()=>{!s()&&!u().some(({value:v})=>!v)&&u([{label:i()("unselected_option"),value:c(f)==="number"?null:"",searchValue:""},...u()])});var h=K(),p=R(h);{var g=v=>{_c(v,{get readonly(){return a()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(b){o(b)},children:(b,y)=>{var w=K(),E=R(w);ct(E,17,u,({label:C,value:S,searchValue:A})=>S,(C,S)=>{let A=()=>c(S).label,k=()=>c(S).value,x=()=>c(S).searchValue;{let $=_(()=>k()===o());Ir(C,{get label(){return A()},get value(){return k()},get valueType(){return c(f)},get searchValue(){return x()},get selected(){return c($)},wrap:!0})}}),T(b,w)},$$slots:{default:!0}})},m=v=>{qJ(v,{get readonly(){return a()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{value:b}})=>{o(b)},children:(b,y)=>{var w=K(),E=R(w);ct(E,17,u,({label:C,value:S})=>S,(C,S)=>{let A=()=>c(S).label,k=()=>c(S).value;{let x=_(()=>k()===o());KJ(C,{get label(){return A()},get value(){return k()},get valueType(){return c(f)},get checked(){return c(x)}})}}),T(b,w)},$$slots:{default:!0}})};U(p,v=>{u().length>c(d)?v(g):v(m,!1)})}T(t,h),le(),r()}function TF(t,e){ae(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),o=P(e,"invalid",3,!1),s=P(e,"sortOptions",3,!1);const a=_(()=>e.fieldConfig.options),l=_(()=>e.fieldConfig.multiple),u=_(()=>c(l)?Aue:$ue),d=_(()=>{const p=c(a).map(g=>ln(g)?g:{label:g,value:g});return s()&&p.sort((g,m)=>ji(g.label,m.label)),p});var f=K(),h=R(f);_r(h,()=>JSON.stringify(c(d)),p=>{var g=K(),m=R(g);lr(m,()=>c(u),(v,b)=>{b(v,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldConfig(){return e.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get options(){return c(d)},get currentValue(){return n()},set currentValue(y){n(y)}})}),T(p,g)}),T(t,f),le()}var Iue=M('<div role="none" class="wrapper"><!></div>');function Pue(t,e){ae(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),o=P(e,"invalid",3,!1);const s=_(()=>e.fieldConfig.collection),a=_(()=>e.fieldConfig.file),l=_(()=>c(a)?[ux(c(s),c(a))].filter(h=>!!h):ys(c(s))),u=_(()=>({...e.fieldConfig,widget:"select",options:wx(e.locale,e.fieldConfig,c(l))}));var d=Iue(),f=F(d);TF(f,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldLabel(){return e.fieldLabel},get fieldConfig(){return c(u)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},sortOptions:!0,get currentValue(){return n()},set currentValue(h){n(h)}}),T(t,d),le()}var Oue=M('<p dir="auto"> </p>');function Nue(t,e){ae(e,!0);const n=_(()=>e.fieldConfig.collection),r=_(()=>e.fieldConfig.file),i=_(()=>ot(e.fieldConfig.multiple,!1)),o=_(()=>ot(e.fieldConfig.value_field,"{{slug}}")),s=_(()=>Iu(e.locale)),a=_(()=>c(r)?[ux(c(n),c(r))].filter(p=>!!p):ys(c(n))),l=_(()=>wx(e.locale,e.fieldConfig,c(a))),u=_(()=>(c(i)?e.currentValue:[e.currentValue]).filter(p=>p!==void 0).map(p=>{const g=c(l).find(m=>m.value===p)?.label;return g&&g!==p?["slug","{{slug}}","{{fields.slug}}"].includes(c(o))?g:`${g} (${p})`:p}));var d=K(),f=R(d);{var h=p=>{var g=Oue(),m=F(g);W(v=>{Te(g,"lang",e.locale),Q(m,v),g.dir=g.dir},[()=>c(s).format(c(u))]),T(p,g)};U(f,p=>{c(u).length&&p(h)})}T(t,d),le()}var Lue=M('<p dir="auto"> </p>'),Rue=M('<p dir="auto"> </p>');function Fue(t,e){ae(e,!0);const n=_(()=>e.fieldConfig.options),r=_(()=>e.fieldConfig.multiple),i=_(()=>Y2(c(n))),o=_(()=>Iu(e.locale)),s=f=>c(i)&&c(n).find(h=>h.value===f)?.label||String(f);var a=K(),l=R(a);{var u=f=>{var h=Lue(),p=F(h);W(g=>{Te(h,"lang",e.locale),Q(p,g),h.dir=h.dir},[()=>c(o).format(e.currentValue.map(s).sort())]),T(f,h)},d=f=>{var h=K(),p=R(h);{var g=m=>{var v=Rue(),b=F(v);W(y=>{Te(v,"lang",e.locale),Q(b,y),v.dir=v.dir},[()=>s(e.currentValue)]),T(m,v)};U(p,m=>{e.currentValue!==void 0&&m(g)},!0)}T(f,h)};U(l,f=>{c(r)&&Array.isArray(e.currentValue)&&e.currentValue.length?f(u):f(d,!1)})}T(t,a),le()}const CF=({fieldConfig:t,value:e})=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),o=Number.isInteger(r)&&(n??0)<=r,s=e?[...e.trim()].length:0,a=i&&s<n,l=o&&s>r;return{count:s,hasMin:i,hasMax:o,tooShort:a,tooLong:l,invalid:a||l}};var Due=M('<div class="wrapper svelte-5qs6s0"><!> <span role="none"> </span> <!></div>');const Mue={hash:"svelte-5qs6s0",code:".wrapper.svelte-5qs6s0 {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:right;}.count.invalid.svelte-5qs6s0 {color:var(--sui-error-foreground-color);}.count.svelte-5qs6s0:not(.invalid) {color:var(--sui-success-foreground-color);}"};function AF(t,e){ae(e,!0),xe(t,Mue);const[n,r]=me(),i=()=>z(ue,"$_",n),o=_(()=>e.fieldConfig.minlength),s=_(()=>e.fieldConfig.maxlength),a=_(()=>CF({fieldConfig:e.fieldConfig,value:e.currentValue})),l=_(()=>c(a).count),u=_(()=>c(a).hasMin),d=_(()=>c(a).hasMax),f=_(()=>c(a).invalid);var h=K(),p=R(h);{var g=m=>{var v=Due(),b=F(v);{var y=k=>{var x=Ne();W(()=>Q(x,`${c(o)??""}
643
+ }`};function hue(t,e){ae(e,!0),xe(t,fue);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n),{widgetContext:o=void 0}=br("field-editor")??{},s=o==="markdown-editor-component";let a=P(e,"currentValue",15),l=P(e,"required",3,!0),u=P(e,"readonly",3,!1),d=P(e,"invalid",3,!1),f=re(void 0),h=re(""),p=0;const g=_(()=>ot(e.fieldConfig.modes,()=>[...Xce],!0)),m=_(()=>ot(e.fieldConfig.buttons,()=>[...eue],!0)),v=_(()=>ot(e.fieldConfig.editor_components,()=>[...nue,...wg.keys()],!0)),b=_(()=>ot(e.fieldConfig.linked_images,!0)),y=_(()=>ot(e.fieldConfig.minimal,!1)),w=_(()=>c(g).map(j=>Qce[j]).filter(Boolean)),E=_(()=>[...c(m),...c(v).includes("code-block")?["code-block"]:[]].map(j=>tue[j]).filter(Boolean)),C=_(()=>s?[]:c(v).map(j=>gO(j==="image"&&c(b)?"linked-image":j)).filter(j=>!!j).map(j=>new uue(j))),S=_(()=>c(C).find(({id:j})=>j==="image"||j==="linked-image")),A=({target:j,images:q})=>{const V=j?.closest("div"),Z=Ev(V);!c(S)||!V?.matches(".lexical-root")||!Z||q.forEach(({file:J,src:H,alt:Y=""})=>{J&&(H=URL.createObjectURL(J)),Z.update(()=>{_d([c(S).createNode({src:H,alt:Y}),Nn()])},{onUpdate:async()=>{if(!J)return;await Mt(250),V.querySelector(`img[src="${H}"]`)?.closest(".drop-target")?.dispatchEvent(new CustomEvent("Select",{detail:{files:[J]}}))}})})},k=async j=>{const{target:q,clipboardData:V}=j,Z=V?.items;if(!Z)return;let J=[];const H=[...Z].findIndex(({kind:G,type:X})=>G==="file"&&Zo.includes(X)),Y=[...Z].findIndex(({kind:G,type:X})=>G==="string"&&X==="text/html");if(H>-1&&Y>-1){const G=H>-1?Z[H].getAsFile():void 0;if(!G)return;Z.clear(),j.stopPropagation();let X="",te=G.name;const se=await new Promise(ie=>{Z[Y].getAsString(ee=>{ie(new DOMParser().parseFromString(ee,"text/html").querySelector("img"))})});if(se&&(X=se.alt,/^https?:/.test(se.src))){const ie=new URL(se.src).pathname.split("/").pop()??"";(Ry.test(ie)||g7.test(ie))&&(te=ie)}J=[{file:new File([G],te,{type:G.type}),alt:X}]}else J=[...V.files].filter(({type:G})=>Zo.includes(G)).map(G=>({file:G}));J.length&&(J=J.map(({file:G,alt:X},te)=>{if(G?.name==="image.png"){const{year:se,month:ie,day:ee,hour:ne,minute:de,second:ge}=ql(),he=J.length>1?`-${te+1}`:"",_e=`${se}${ie}${ee}-${ne}${de}${ge}${he}.png`;G=new File([G],_e,{type:G.type})}return{file:G,alt:X}}),A({target:q,images:J}))},x=async j=>{const{target:q,dataTransfer:V}=j,Z=V?.files;let J=[];if(Z?.length)J=[...Z].filter(({type:H})=>Zo.includes(H)).map(H=>({file:H}));else{const H=j.dataTransfer?.getData("text/html");if(H){const Y=new DOMParser().parseFromString(H,"text/html").querySelector("img");if(Y){const{src:G,alt:X}=Y,te=G.match(/^data:(?<type>image\/.+?);base64,.+/);let se;if(te){const ie=te.groups?.type??"";if(Zo.includes(ie))try{const ee=await(await fetch(G)).blob(),{year:ne,month:de,day:ge,hour:he,minute:_e,second:fe}=ql(),pe=ie.split("/")[1],ye=`${ne}${de}${ge}-${he}${_e}${fe}.${pe}`;se=new File([ee],ye,{type:ie})}catch{return}}J=[{file:se,src:G,alt:X}]}}}J.length&&A({target:q,images:J})},$=()=>{const j=typeof a()=="string"?a():"";c(h)!==j&&B(h,j,!0),!(!i()||s)&&(window.clearTimeout(p),p=window.setTimeout(()=>{Object.keys(i().extraValues[e.locale]??{}).forEach(q=>{const[V]=q.match(Xf)??[];V?.startsWith(`${e.keyPath}:`)&&!c(f)?.querySelector(`[data-key-path-prefix="${V}"]`)&&delete i().extraValues[e.locale][q]})},500))},I=()=>{const j=c(h);a()!==j&&a(j)};De(()=>{a(),Ce(()=>{$()})}),De(()=>{c(h),Ce(()=>{I()})});var O=due();let N;var L=F(O);vn(L,Mt,null,j=>{var q=K(),V=R(q);_r(V,()=>JSON.stringify(e.fieldConfig),Z=>{Kne(Z,{get lang(){return e.locale},get modes(){return c(w)},get buttons(){return c(E)},get components(){return c(C)},flex:!0,get readonly(){return u()},get required(){return l()},get invalid(){return d()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,onpastecapture:J=>{k(J)},ondrop:J=>{x(J)},get value(){return c(h)},set value(J){B(h,J,!0)}})}),T(j,q)}),St(O,j=>B(f,j),()=>c(f)),W(j=>N=gn(O,1,"wrapper svelte-14ielax",null,N,j),[()=>({minimal:c(y)})]),T(t,O),le(),r()}function pue(){return{useNewRenderer:!0,renderer:{heading(...t){return Nt.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return Nt.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return Nt.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}var gue=M('<div role="none" class="svelte-1f46x0y"><!></div>');const mue={hash:"svelte-1f46x0y",code:'[role="document"] div.svelte-1f46x0y :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role="document"] div.svelte-1f46x0y :is(video, img) {max-width:100%;max-height:100%;}[role="document"] div.svelte-1f46x0y :is(a:has(img)) {display:inline-block;}[role="document"] div.svelte-1f46x0y :is(a:has(img)) img {pointer-events:none;}'};function vue(t,e){ae(e,!0),xe(t,mue);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n);let o=re("");const s=_(()=>i()?.originalEntry),a=_(()=>i()?.collectionName??""),l=_(()=>i()?.fileName),u=_(()=>ot(e.fieldConfig.sanitize_preview,!1)),d={breaks:!0,async:!0,walkTokens:async g=>{if(g.type==="image"){const m=await Nu({value:g.href,entry:c(s),collectionName:c(a),fileName:c(l)});m&&(g.href=m)}}};Nt.use(pue()),De(()=>{(async()=>B(o,await Nt.parse(e.currentValue??"",d),!0))()});var f=gue(),h=F(f);{var p=g=>{var m=K(),v=R(m);Mr(v,()=>c(u)?Bi.sanitize(c(o)):c(o)),T(g,m)};U(h,g=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&g(p)})}T(t,f),le(),r()}function _ue(t,e){ae(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),o=P(e,"invalid",3,!1),s=re(void 0),a=re("");const l=_(()=>ot(e.fieldConfig.value_type,"int")),u=_(()=>e.fieldConfig.min),d=_(()=>e.fieldConfig.max),f=_(()=>ot(e.fieldConfig.step,1)),h=_(()=>c(l)==="int"||c(l)==="float"),p=()=>{if(n()!==void 0){if(c(h)&&c(s)!==n())if(typeof n()=="number")B(s,n(),!0);else if(typeof n()=="string"){const w=n().trim()?Number(n()):NaN;B(s,Number.isNaN(w)?void 0:w,!0)}else B(s,void 0);!c(h)&&c(a)!==n()&&B(a,String(n()),!0)}},g=()=>{let w;c(h)?c(s)===void 0?w=NaN:c(l)==="int"?w=Number.parseInt(c(h)?String(c(s)):c(a),10):w=Number.parseFloat(c(h)?String(c(s)):c(a)):w=c(a),c(h)&&Number.isNaN(w)&&(w=null),n()!==w&&n(w)};De(()=>{n(),Ce(()=>{p()})}),De(()=>{c(a),Ce(()=>{g()})}),De(()=>{c(s),Ce(()=>{g()})});var m=K(),v=R(m);{var b=w=>{Zne(w,{get min(){return c(u)},get max(){return c(d)},get step(){return c(f)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return c(s)},set value(E){B(s,E,!0)}})},y=w=>{nr(w,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return c(a)},set value(E){B(a,E,!0)}})};U(v,w=>{c(h)?w(b):w(y,!1)})}T(t,m),le()}var bue=M('<p dir="auto"><!></p>');function yue(t,e){ae(e,!0);const n=_(()=>ot(e.fieldConfig.value_type,"int")),r=_(()=>fh(e.locale)),i=_(()=>Intl.NumberFormat(c(r)));var o=K(),s=R(o);{var a=l=>{var u=bue(),d=F(u);{var f=p=>{var g=Ne();W(m=>Q(g,m),[()=>c(i).format(Number(e.currentValue))]),T(p,g)},h=p=>{var g=Ne();W(()=>Q(g,e.currentValue)),T(p,g)};U(d,p=>{c(n)==="int"||c(n)==="float"?p(f):p(h,!1)})}W(()=>{Te(u,"lang",e.locale),u.dir=u.dir}),T(l,u)};U(s,l=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&l(a)})}T(t,o),le()}const SF=t=>{const{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,isIndexFile:s}=oe(rt),{defaultLocale:a}=(i??r)._i18n,l={...La(t),...La(o[a])},u={collectionName:e,fileName:n,valueMap:l,isIndexFile:s},d=[];return Object.keys(l).forEach(f=>{const h=$n({...u,keyPath:f});if(!h)return;const{widget:p="text",i18n:g=!1}=h;["text","string","markdown"].includes(p)&&[!0,"translate"].includes(g)&&(l[f]=t[f]??""),([!1,"none"].includes(g)||d.some(m=>new RegExp(`^${Qt(m)}\\b`).test(f)))&&(delete l[f],d.push(f))}),l},EF=t=>{rt.update(e=>{const{fields:n,currentLocales:r,currentValues:i,validities:o}=e,s=!r[t];if(s&&!i[t]){const{collectionName:a,fileName:l,originalValues:u}=e,d=jh(n,t);return{...e,currentLocales:{...r,[t]:s},originalValues:{...u,[t]:d},currentValues:{...i,[t]:W1({draft:{collectionName:a,fileName:l},locale:t,target:SF(d)})}}}return{...e,currentLocales:{...r,[t]:s},validities:{...o,[t]:{}}}})},wue=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s})=>{const a={collectionName:t,fileName:e,keyPath:"",valueMap:r,isIndexFile:i};return s?s.replaceAll(/{{(.+?)}}/g,(l,u)=>{const[d,...f]=u.split(/\s*\|\s*/);return dd({...a,keyPath:`${n}.${d.replace(/^fields\./,"")}`,locale:o,transformations:f})}):IO({valueMap:r,locale:o,keyPath:n,keyPathRegex:new RegExp(`^${Qt(n)}\\.`),getFieldArgs:a})};var xue=M('<div role="none" class="summary svelte-v8qxb5"><!></div>'),kue=M('<div role="group" class="wrapper svelte-v8qxb5"><!> <div role="none" class="item-list"><!></div></div>'),Sue=M("<!> <!> <!>",1);const Eue={hash:"svelte-v8qxb5",code:".wrapper.svelte-v8qxb5 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-v8qxb5 > .group {margin-top:8px;}.summary.svelte-v8qxb5 {padding:8px;}"};function Tue(t,e){const n=dr();ae(e,!0),xe(t,Eue);const[r,i]=me(),o=()=>z(rt,"$entryDraft",r),s=()=>z(ue,"$_",r),a=()=>z(xn,"$isSmallScreen",r),{widgetContext:l,valueStoreKey:u="currentValues"}=br("field-editor")??{};let d=P(e,"required",3,!0),f=re(void 0);const h=_(()=>e.fieldConfig.name),p=_(()=>ot(e.fieldConfig.i18n,!1)),g=_(()=>e.fieldConfig.collapsed),m=_(()=>e.fieldConfig.summary),v=_(()=>e.fieldConfig.fields),b=_(()=>e.fieldConfig.types),y=_(()=>ot(e.fieldConfig.typeKey,"type")),w=_(()=>o()?.isIndexFile??!1),E=_(()=>o()?.collection),C=_(()=>o()?.collectionName??""),S=_(()=>o()?.collectionFile),A=_(()=>o()?.fileName),k=_(()=>(c(S)??c(E))?._i18n??ws),x=_(()=>c(k).defaultLocale),$=_(()=>er(o()?.[u][e.locale])??{}),I=_(()=>({collectionName:c(C),fileName:c(A),valueMap:c($),isIndexFile:c(w)})),O=_(()=>Object.entries(c($)).some(([fe,pe])=>!!fe.startsWith(`${e.keyPath}.`)&&(pe!==null||$n({...c(I),keyPath:fe})?.widget==="object"))),N=_(()=>l==="markdown-editor-component"||e.locale===c(x)||c(p)!==!1),L=_(()=>`${e.keyPath}#`),j=_(()=>o()?.expanderStates?._[c(L)]??!0),q=_(()=>Array.isArray(c(b))),V=_(()=>`${e.keyPath}.${c(y)}`),Z=_(()=>c(q)?c(b)?.find(({name:fe})=>fe===c($)[c(V)]):void 0),J=_(()=>(c(q)?c(Z)?.fields:c(v))??[]),H=_(()=>c(q)&&c(Z)?.summary||c(m)),Y=_(()=>e.locale!==c(x)&&c(p)==="duplicate"),G=()=>{const fe=c(L);Wo({[fe]:wF({key:fe,locale:e.locale,collapsed:c(g)})})},X=async({type:fe}={})=>{Ye(wo,!1),fe&&(Object.keys(o()?.[u]??{}).forEach(ve=>{(ve===e.locale||c(p)==="duplicate")&&Ft(rt,Ce(o)[u][ve][c(V)]=fe,Ce(o))}),await iu());const pe=Object.fromEntries(Object.entries(jh(c(J),e.locale)).map(([ve,Le])=>[`${e.keyPath}.${ve}`,Le])),ye=e.locale===c(x)?pe:SF(pe);Object.entries(o()?.[u]??{}).forEach(([ve,Le])=>{(ve===e.locale||c(p)==="duplicate")&&(Ft(rt,Ce(o)[u][ve]=Object.assign(Le,La({...ye,...Le})),Ce(o)),delete o()[u][ve][e.keyPath])}),Ye(wo,!0)},te=()=>{Ye(wo,!1),Object.entries(o()?.[u]??{}).forEach(([fe,pe])=>{(fe===e.locale||c(p)==="duplicate")&&(Object.keys(pe).forEach(ye=>{ye.startsWith(`${e.keyPath}.`)&&(Ft(rt,Ce(o)[u][fe][ye]=null,Ce(o)),delete o()?.[u][fe][ye])}),Ft(rt,Ce(o)[u][fe][e.keyPath]=null,Ce(o)))}),Ye(wo,!0)},se=()=>wue({...c(I),keyPath:e.keyPath,locale:e.locale,summaryTemplate:c(H)});Zt(()=>{G()});var ie=Sue(),ee=R(ie);{var ne=fe=>{{let pe=_(()=>s()("add_x",{values:{name:e.fieldLabel||c(h)}}));kh(fe,{get label(){return c(pe)},get checked(){return c(O)},get disabled(){return c(Y)},onChange:({detail:{checked:ye}})=>{ye?X():te()}})}};U(ee,fe=>{!c(q)&&!d()&&fe(ne)})}var de=D(ee,2);{var ge=fe=>{Dw(fe,{get disabled(){return c(Y)},get fieldConfig(){return e.fieldConfig},addItem:X})};U(de,fe=>{c(q)&&!c(O)&&fe(ge)})}var he=D(de,2);{var _e=fe=>{var pe=kue(),ye=F(pe);{const Ae=Ve=>{var $e=K(),Se=R($e);{var Ue=Ie=>{{const We=ke=>{tt(ke,{name:"close"})};let be=_(()=>s()("remove"));nt(Ie,{size:"small",iconic:!0,get disabled(){return c(Y)},get"aria-label"(){return c(be)},onclick:()=>{te()},startIcon:We,$$slots:{startIcon:!0}})}};U(Se,Ie=>{c(q)&&Ie(Ue)})}T(Ve,$e)};let Qe=_(()=>c(q)?c(Z)?.label||c(Z)?.name:""),qe=_(()=>c(J).length?()=>Wo({[c(L)]:!c(j)}):void 0);vF(ye,{get label(){return c(Qe)},get controlId(){return`object-${n}-item-list`},get expanded(){return c(j)},get toggleExpanded(){return c(qe)},endContent:Ae,$$slots:{endContent:!0}})}var ve=D(ye,2),Le=F(ve);vn(Le,()=>Fu(c(f)),null,Ae=>{var Qe=K(),qe=R(Qe);{var Ve=Se=>{var Ue=K(),Ie=R(Ue);ct(Ie,17,()=>c(J),We=>We.name,(We,be)=>{No(We,{children:(ke,Oe)=>{{let et=_(()=>[e.keyPath,c(be).name].join("."));Uv(ke,{get keyPath(){return c(et)},get locale(){return e.locale},get fieldConfig(){return c(be)}})}},$$slots:{default:!0}})}),T(Se,Ue)},$e=Se=>{const Ue=_(se);var Ie=K(),We=R(Ie);{var be=ke=>{var Oe=xue(),et=F(Oe);{let Ze=_(()=>a()?2:1);jr(et,{get lines(){return c(Ze)},children:(Ee,Me)=>{var Je=Ne();W(()=>Q(Je,c(Ue))),T(Ee,Je)},$$slots:{default:!0}})}W(()=>Te(Oe,"id",`object-${n}-summary`)),T(ke,Oe)};U(We,ke=>{c(Ue)&&ke(be)})}T(Se,Ie)};U(qe,Se=>{c(j)?Se(Ve):Se($e,!1)})}T(Ae,Qe)}),St(ve,Ae=>B(f,Ae),()=>c(f)),W(()=>{Te(pe,"aria-labelledby",c(j)?void 0:`object-${n}-summary`),Te(ve,"id",`object-${n}-item-list`)}),T(fe,pe)};U(he,fe=>{(!(!d()||c(q))||c(O))&&c(N)&&fe(_e)})}T(t,ie),le(),i()}function Cue(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n),o=_(()=>e.fieldConfig.fields),s=_(()=>e.fieldConfig.types),a=_(()=>ot(e.fieldConfig.typeKey,"type")),l=_(()=>er(i()?.currentValues[e.locale])??{}),u=_(()=>Object.entries(c(l)).some(([y,w])=>!!y.startsWith(`${e.keyPath}.`)&&!!w)),d=_(()=>Array.isArray(c(s))),f=_(()=>`${e.keyPath}.${c(a)}`),h=_(()=>c(d)?c(s)?.find(({name:y})=>y===c(l)[c(f)]):void 0),p=_(()=>c(h)?c(h).label||c(h).name:void 0),g=_(()=>(c(d)?c(h)?.fields:c(o))??[]);var m=K(),v=R(m);{var b=y=>{kF(y,{get label(){return c(p)},children:(w,E)=>{var C=K(),S=R(C);ct(S,17,()=>c(g),A=>A.name,(A,k)=>{No(A,{children:(x,$)=>{{let I=_(()=>[e.keyPath,c(k).name].join("."));ek(x,{get keyPath(){return c(I)},get locale(){return e.locale},get fieldConfig(){return c(k)}})}},$$slots:{default:!0}})}),T(w,C)},$$slots:{default:!0}})};U(v,y=>{c(u)&&y(b)})}T(t,m),le(),r()}function Aue(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n),{valueStoreKey:o="currentValues"}=br("field-editor")??{};let s=P(e,"required",3,!0),a=P(e,"readonly",3,!1),l=P(e,"invalid",3,!1);const u=_(()=>e.fieldConfig.i18n),d=_(()=>e.fieldConfig.max),f=_(()=>ot(e.fieldConfig.dropdown_threshold,5)),h=w=>{i()&&Object.keys(er(i()[o])??{}).forEach(E=>{c(u)!=="duplicate"&&E!==e.locale||yF({locale:E,valueStoreKey:o,keyPath:e.keyPath,manipulate:w})})},p=w=>{h(({valueList:E})=>{E.push(w)})},g=w=>{h(({valueList:E})=>{E.splice(E.indexOf(w),1)})};var m=K(),v=R(m);{var b=w=>{lX(w,{get disabled(){return a()},get readonly(){return a()},get required(){return s()},get invalid(){return l()},get options(){return e.options},get values(){return e.currentValue},get max(){return c(d)},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onAddValue:({detail:{value:E}})=>{p(E)},onRemoveValue:({detail:{value:E}})=>{g(E)}})},y=w=>{JZ(w,{get"aria-labelledby"(){return`${e.fieldId??""}-label`},children:(E,C)=>{var S=K(),A=R(S);ct(A,17,()=>e.options,({label:k,value:x})=>x,(k,x)=>{let $=()=>c(x).label,I=()=>c(x).value;{let O=_(()=>e.currentValue.includes(I()));kh(k,{get label(){return $()},get value(){return I()},get readonly(){return a()},get required(){return s()},get invalid(){return l()},get checked(){return c(O)},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{checked:N}})=>{N?p(I()):g(I())}})}}),T(E,S)},$$slots:{default:!0}})};U(v,w=>{e.options.length>c(f)?w(b):w(y,!1)})}T(t,m),le(),r()}function $ue(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(ue,"$_",n);let o=P(e,"currentValue",15),s=P(e,"required",3,!0),a=P(e,"readonly",3,!1),l=P(e,"invalid",3,!1),u=P(e,"options",7);const d=_(()=>ot(e.fieldConfig.dropdown_threshold,5));let f=re(void 0);De(()=>{c(f)||B(f,u()[0]?.value!==void 0?typeof u()[0]?.value:"string",!0)}),De(()=>{!s()&&!u().some(({value:v})=>!v)&&u([{label:i()("unselected_option"),value:c(f)==="number"?null:"",searchValue:""},...u()])});var h=K(),p=R(h);{var g=v=>{_c(v,{get readonly(){return a()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(b){o(b)},children:(b,y)=>{var w=K(),E=R(w);ct(E,17,u,({label:C,value:S,searchValue:A})=>S,(C,S)=>{let A=()=>c(S).label,k=()=>c(S).value,x=()=>c(S).searchValue;{let $=_(()=>k()===o());Ir(C,{get label(){return A()},get value(){return k()},get valueType(){return c(f)},get searchValue(){return x()},get selected(){return c($)},wrap:!0})}}),T(b,w)},$$slots:{default:!0}})},m=v=>{qJ(v,{get readonly(){return a()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{value:b}})=>{o(b)},children:(b,y)=>{var w=K(),E=R(w);ct(E,17,u,({label:C,value:S})=>S,(C,S)=>{let A=()=>c(S).label,k=()=>c(S).value;{let x=_(()=>k()===o());KJ(C,{get label(){return A()},get value(){return k()},get valueType(){return c(f)},get checked(){return c(x)}})}}),T(b,w)},$$slots:{default:!0}})};U(p,v=>{u().length>c(d)?v(g):v(m,!1)})}T(t,h),le(),r()}function TF(t,e){ae(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),o=P(e,"invalid",3,!1),s=P(e,"sortOptions",3,!1);const a=_(()=>e.fieldConfig.options),l=_(()=>e.fieldConfig.multiple),u=_(()=>c(l)?Aue:$ue),d=_(()=>{const p=c(a).map(g=>ln(g)?g:{label:g,value:g});return s()&&p.sort((g,m)=>ji(g.label,m.label)),p});var f=K(),h=R(f);_r(h,()=>JSON.stringify(c(d)),p=>{var g=K(),m=R(g);lr(m,()=>c(u),(v,b)=>{b(v,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldConfig(){return e.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get options(){return c(d)},get currentValue(){return n()},set currentValue(y){n(y)}})}),T(p,g)}),T(t,f),le()}var Iue=M('<div role="none" class="wrapper"><!></div>');function Pue(t,e){ae(e,!0);let n=P(e,"currentValue",15),r=P(e,"required",3,!0),i=P(e,"readonly",3,!1),o=P(e,"invalid",3,!1);const s=_(()=>e.fieldConfig.collection),a=_(()=>e.fieldConfig.file),l=_(()=>c(a)?[ux(c(s),c(a))].filter(h=>!!h):ys(c(s))),u=_(()=>({...e.fieldConfig,widget:"select",options:wx(e.locale,e.fieldConfig,c(l))}));var d=Iue(),f=F(d);TF(f,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldLabel(){return e.fieldLabel},get fieldConfig(){return c(u)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},sortOptions:!0,get currentValue(){return n()},set currentValue(h){n(h)}}),T(t,d),le()}var Oue=M('<p dir="auto"> </p>');function Nue(t,e){ae(e,!0);const n=_(()=>e.fieldConfig.collection),r=_(()=>e.fieldConfig.file),i=_(()=>ot(e.fieldConfig.multiple,!1)),o=_(()=>ot(e.fieldConfig.value_field,"{{slug}}")),s=_(()=>Iu(e.locale)),a=_(()=>c(r)?[ux(c(n),c(r))].filter(p=>!!p):ys(c(n))),l=_(()=>wx(e.locale,e.fieldConfig,c(a))),u=_(()=>(c(i)?e.currentValue:[e.currentValue]).filter(p=>p!==void 0).map(p=>{const g=c(l).find(m=>m.value===p)?.label;return g&&g!==p?["slug","{{slug}}","{{fields.slug}}"].includes(c(o))?g:`${g} (${p})`:p}));var d=K(),f=R(d);{var h=p=>{var g=Oue(),m=F(g);W(v=>{Te(g,"lang",e.locale),Q(m,v),g.dir=g.dir},[()=>c(s).format(c(u))]),T(p,g)};U(f,p=>{c(u).length&&p(h)})}T(t,d),le()}var Lue=M('<p dir="auto"> </p>'),Rue=M('<p dir="auto"> </p>');function Fue(t,e){ae(e,!0);const n=_(()=>e.fieldConfig.options),r=_(()=>e.fieldConfig.multiple),i=_(()=>Y2(c(n))),o=_(()=>Iu(e.locale)),s=f=>c(i)&&c(n).find(h=>h.value===f)?.label||String(f);var a=K(),l=R(a);{var u=f=>{var h=Lue(),p=F(h);W(g=>{Te(h,"lang",e.locale),Q(p,g),h.dir=h.dir},[()=>c(o).format(e.currentValue.map(s).sort())]),T(f,h)},d=f=>{var h=K(),p=R(h);{var g=m=>{var v=Rue(),b=F(v);W(y=>{Te(v,"lang",e.locale),Q(b,y),v.dir=v.dir},[()=>s(e.currentValue)]),T(m,v)};U(p,m=>{e.currentValue!==void 0&&m(g)},!0)}T(f,h)};U(l,f=>{c(r)&&Array.isArray(e.currentValue)&&e.currentValue.length?f(u):f(d,!1)})}T(t,a),le()}const CF=({fieldConfig:t,value:e})=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),o=Number.isInteger(r)&&(n??0)<=r,s=e?[...e.trim()].length:0,a=i&&s<n,l=o&&s>r;return{count:s,hasMin:i,hasMax:o,tooShort:a,tooLong:l,invalid:a||l}};var Due=M('<div class="wrapper svelte-5qs6s0"><!> <span role="none"> </span> <!></div>');const Mue={hash:"svelte-5qs6s0",code:".wrapper.svelte-5qs6s0 {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:right;}.count.invalid.svelte-5qs6s0 {color:var(--sui-error-foreground-color);}.count.svelte-5qs6s0:not(.invalid) {color:var(--sui-success-foreground-color);}"};function AF(t,e){ae(e,!0),xe(t,Mue);const[n,r]=me(),i=()=>z(ue,"$_",n),o=_(()=>e.fieldConfig.minlength),s=_(()=>e.fieldConfig.maxlength),a=_(()=>CF({fieldConfig:e.fieldConfig,value:e.currentValue})),l=_(()=>c(a).count),u=_(()=>c(a).hasMin),d=_(()=>c(a).hasMax),f=_(()=>c(a).invalid);var h=K(),p=R(h);{var g=m=>{var v=Due(),b=F(v);{var y=k=>{var x=Ne();W(()=>Q(x,`${c(o)??""}
644
644
  / `)),T(k,x)};U(b,k=>{c(u)&&k(y)})}var w=D(b,2);let E;var C=F(w),S=D(w,2);{var A=k=>{var x=Ne();W(()=>Q(x,` /
645
645
  ${c(s)??""}`)),T(k,x)};U(S,k=>{c(d)&&k(A)})}W((k,x)=>{Te(v,"aria-label",k),E=gn(w,1,"count svelte-5qs6s0",null,E,x),Q(C,c(l))},[()=>i()(c(u)&&c(d)?c(l)===1?"character_counter.min_max.one":"character_counter.min_max.many":c(u)?c(l)===1?"character_counter.min.one":"character_counter.min.many":c(l)===1?"character_counter.max.one":"character_counter.max.many",{values:{count:c(l),min:c(o),max:c(s)}}),()=>({invalid:c(f)})]),T(m,v)};U(p,m=>{(c(u)||c(d))&&m(g)})}T(t,h),le(),r()}function zue(t,e){ae(e,!0);const[n,r]=me();let i=P(e,"currentValue",15),o=P(e,"required",3,!0),s=P(e,"readonly",3,!1),a=P(e,"invalid",3,!1);const{extraHint:l}=br("field-editor")??{};let u=re("");const d=_(()=>ot(e.fieldConfig.type,"text")),f=_(()=>ot(e.fieldConfig.prefix,"")),h=_(()=>ot(e.fieldConfig.suffix,"")),p=()=>{let m=typeof i()=="string"?i():"";c(f)&&m.startsWith(c(f))&&(m=m.slice(c(f).length)),c(h)&&m.endsWith(c(h))&&(m=m.slice(0,-c(h).length)),c(u)!==m&&B(u,m,!0)},g=()=>{let m=c(u).trim();m&&(c(f)||c(h))&&(m=`${c(f)}${m}${c(h)}`),i()!==m&&i(m)};De(()=>{i(),Ce(()=>{p()})}),De(()=>{c(u),Ce(()=>{g()})}),De(()=>{l&&Ye(l,AF)}),nr(t,{get lang(){return e.locale},get type(){return c(d)},get inputmode(){return c(d)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return c(u)},set value(m){B(u,m,!0)}}),le(),r()}const Uue=t=>{if(!i0(t))return!1;const{origin:e,pathname:n,searchParams:r}=new URL(t);return!!((e==="https://www.youtube.com"||e==="https://www.youtube-nocookie.com")&&(n==="/watch"&&r.has("v")||n==="/playlist"&&r.has("list")||n.startsWith("/embed/"))||e==="https://youtu.be"&&n)},jue=t=>{const e="https://www.youtube-nocookie.com",{pathname:n,search:r,searchParams:i}=new URL(t);if(n==="/watch"){const o=new URLSearchParams(i);let s=`${e}/embed/${o.get("v")}`;return o.get("list")&&(o.delete("v"),o.set("listType","playlist"),s+=`?${o.toString()}`),s}return n==="/playlist"?`${e}/embed/videoseries${r}`:n.startsWith("/embed/")?`${e}${n}${r}`:`${e}/embed${n}${r}`};var Bue=M('<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-wmmi2b"></iframe>'),que=M("<a> </a>"),Hue=M('<div role="none"><!></div>');const Gue={hash:"svelte-wmmi2b",code:"iframe.svelte-wmmi2b {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16/9;}"};function Wue(t,e){ae(e,!0),xe(t,Gue);const[n,r]=me(),i=()=>z(ue,"$_",n);let o=re(void 0),s=re(!0);const a=_(()=>jue(e.url));Zt(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:h,violatedDirective:p})=>{h===new URL(c(a)).origin&&p==="frame-src"&&B(s,!1)})});var l=Hue(),u=F(l);{var d=h=>{var p=K(),g=R(p);vn(g,()=>Fu(c(o)),null,m=>{var v=Bue();W((b,y)=>{Te(v,"src",b),Te(v,"title",y)},[()=>encodeURI(c(a)),()=>i()("youtube_video_player")]),T(m,v)}),T(h,p)},f=h=>{var p=que(),g=F(p);W(m=>{Te(p,"href",m),Q(g,e.url)},[()=>encodeURI(e.url)]),T(h,p)};U(u,h=>{c(s)?h(d):h(f,!1)})}St(l,h=>B(o,h),()=>c(o)),T(t,l),le(),r()}var Kue=M("<a> </a>"),Vue=M("<a> </a>"),Yue=M('<p dir="auto"><!></p>');const Zue={hash:"svelte-1dlg8zk",code:".title.svelte-1dlg8zk {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}"};function Jue(t,e){ae(e,!0),xe(t,Zue);const n=_(()=>e.fieldConfig.name),r=_(()=>ot(e.fieldConfig.type,"text"));var i=K(),o=R(i);{var s=a=>{var l=Yue();let u;var d=F(l);{var f=p=>{var g=K(),m=R(g);{var v=y=>{Wue(y,{get url(){return e.currentValue}})},b=y=>{var w=Kue(),E=F(w);W(C=>{Te(w,"href",C),Q(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),T(y,w)};U(m,y=>{Uue(e.currentValue)?y(v):y(b,!1)})}T(p,g)},h=p=>{var g=K(),m=R(g);{var v=y=>{var w=Vue(),E=F(w);W(C=>{Te(w,"href",`mailto:${C??""}`),Q(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),T(y,w)},b=y=>{var w=Ne();W(()=>Q(w,e.currentValue)),T(y,w)};U(m,y=>{c(r)==="email"?y(v):y(b,!1)},!0)}T(p,g)};U(d,p=>{c(r)==="url"||i0(e.currentValue)?p(f):p(h,!1)})}W(p=>{Te(l,"lang",e.locale),u=gn(l,1,"svelte-1dlg8zk",null,u,p),l.dir=l.dir},[()=>({title:c(n)==="title"})]),T(a,l)};U(o,a=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&a(s)})}T(t,i),le()}function Xue(t,e){ae(e,!0);const[n,r]=me(),{extraHint:i}=br("field-editor")??{};let o=P(e,"currentValue",15),s=P(e,"required",3,!0),a=P(e,"readonly",3,!1),l=P(e,"invalid",3,!1),u=re("");const d=()=>{const h=typeof o()=="string"?o():"";c(u)!==h&&B(u,h,!0)},f=()=>{const h=c(u);o()!==h&&o(h)};De(()=>{o(),Ce(()=>{d()})}),De(()=>{c(u),Ce(()=>{f()})}),De(()=>{i&&Ye(i,AF)}),Lh(t,{get lang(){return e.locale},flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return c(u)},set value(h){B(u,h,!0)}}),le(),r()}var Que=M('<p dir="auto" class="svelte-tzbr78"> </p>');const ede={hash:"svelte-tzbr78",code:"p.svelte-tzbr78 {white-space:pre-wrap;}"};function tde(t,e){ae(e,!0),xe(t,ede);var n=K(),r=R(n);{var i=o=>{var s=Que(),a=F(s);W(()=>{Te(s,"lang",e.locale),Q(a,e.currentValue),s.dir=s.dir}),T(o,s)};U(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}T(t,n),le()}const $F=t=>{const{prefix:e,use_b32_encoding:n}=t,r=n?Vb():Si();return e?`${e}${r}`:r};function nde(t,e){ae(e,!0);const[n,r]=me(),i=()=>z(rt,"$entryDraft",n);let o=P(e,"currentValue",15),s=P(e,"required",3,!0),a=P(e,"readonly",3,!0),l=P(e,"invalid",3,!1);const u=_(()=>i()?.collection),d=_(()=>i()?.collectionFile),f=_(()=>(c(d)??c(u))?._i18n??ws),h=_(()=>c(f).defaultLocale);Zt(()=>{o()||(e.locale===c(h)||[!0,"translate"].includes(e.fieldConfig?.i18n??!1))&&o($F(e.fieldConfig)),"read_only"in e.fieldConfig&&ym("uuid_read_only")});{let p=_(()=>a()&&e.fieldConfig.read_only!==!1);nr(t,{flex:!0,get readonly(){return c(p)},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(g){o(g)}})}le(),r()}var rde=M('<p class="svelte-1e2mlgo"> </p>');const ide={hash:"svelte-1e2mlgo",code:"p.svelte-1e2mlgo {font-family:var(--sui-font-family-monospace);}"};function ode(t,e){ae(e,!0),xe(t,ide);var n=K(),r=R(n);{var i=o=>{var s=rde(),a=F(s);W(()=>Q(a,e.currentValue)),T(o,s)};U(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}T(t,n),le()}const fb={boolean:mae,code:bae,color:Tae,compute:Iae,datetime:Fae,file:BC,image:BC,keyvalue:Yle,list:Ice,map:Vce,markdown:hue,number:_ue,object:Tue,relation:Pue,select:TF,string:zue,text:Xue,uuid:nde},YC={boolean:_ae,code:wae,color:$ae,compute:Oae,datetime:Mae,file:qC,image:qC,keyvalue:Qle,list:Bce,map:Jce,markdown:vue,number:yue,object:Cue,relation:Nue,select:Fue,string:Jue,text:tde,uuid:ode},ZC=({locale:t,isDefaultLocale:e,keyPath:n,getFieldArgs:r,currentValues:i,reset:o=!1})=>{const{valueMap:s={}}=r;Object.entries(s).forEach(([a,l])=>{if(!n||a.startsWith(n)){const u=$n({...r,keyPath:a});(e||[!0,"translate"].includes(u?.i18n??!1))&&(o?delete i[t][a]:i[t][a]=l)}})},sde=({draft:t,keyPath:e,locale:n})=>{const{collection:r,collectionName:i,collectionFile:o,fileName:s,currentValues:a,originalValues:l,isIndexFile:u}=t,{defaultLocale:d}=(o??r)._i18n,h={keyPath:e,locale:n,isDefaultLocale:n===d,currentValues:a},p={collectionName:i,fileName:s,keyPath:"",isIndexFile:u};ZC({...h,getFieldArgs:{...p,valueMap:a[n]},reset:!0}),ZC({...h,getFieldArgs:{...p,valueMap:l[n]}})},tk=({locale:t="",keyPath:e=""}={})=>{const n=oe(rt),{collection:r,collectionFile:i,currentValues:o}=n,{allLocales:s}=(i??r)._i18n;(t?[t]:s).forEach(l=>{sde({draft:n,keyPath:e,locale:l})}),rt.update(()=>({...n,currentValues:o}))};var ade=M('<div class="required svelte-oqh0x4">*</div>'),lde=M("<!> <!>",1),cde=M('<p class="comment svelte-oqh0x4"><!></p>'),ude=M("<!> <!> <!> <!> <!> <!> <!>",1),dde=M('<div role="none"> </div>'),fde=M('<div role="none" class="before-input svelte-oqh0x4"><!></div>'),hde=M('<div role="none" class="prefix svelte-oqh0x4"> </div>'),pde=M('<div role="none" class="suffix svelte-oqh0x4"> </div>'),gde=M('<div role="none" class="after-input svelte-oqh0x4"><!></div>'),mde=M("<!> <!> <!> <!> <!>",1),vde=M('<p class="hint svelte-oqh0x4"><!></p>'),_de=M('<div role="none" class="footer svelte-oqh0x4"><!> <!></div>'),bde=M('<section role="group" class="field svelte-oqh0x4"><header role="none" class="svelte-oqh0x4"><h4 role="none" class="svelte-oqh0x4"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!></section>');const yde={hash:"svelte-oqh0x4",code:`section.svelte-oqh0x4 {padding:var(--field-editor-padding);}section.svelte-oqh0x4:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-oqh0x4 > * {margin-inline:auto !important;max-width:768px;}header.svelte-oqh0x4 {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}header.svelte-oqh0x4 h4:where(.svelte-oqh0x4) {margin-inline:8px 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}header.svelte-oqh0x4 .required:where(.svelte-oqh0x4) {margin:2px 0 0 2px;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}.widget-wrapper.has-extra-labels.svelte-oqh0x4 {display:flex;align-items:center;justify-content:flex-start;gap:4px;}.widget-wrapper.svelte-oqh0x4 :is(input[type=text], textarea) {width:100%;}.widget-wrapper.svelte-oqh0x4 input:is([type=color], [type=number]) {outline:0;border-width:1px;border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);height:var(--sui-button-medium-height);color:inherit;background-color:var(--sui-textbox-background-color);}.widget-wrapper.svelte-oqh0x4 input:is([type=file], [type=checkbox]) {color:inherit;}.widget-wrapper.svelte-oqh0x4 > div {color:inherit;}.widget-wrapper.svelte-oqh0x4 input:is([type=date], [type=datetime-local], [type=time]) {outline:0;margin:var(--sui-focus-ring-width);border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);padding:var(--sui-textbox-singleline-padding);width:auto;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);text-transform:uppercase;}.widget-wrapper.svelte-oqh0x4 input:is([type=date], [type=datetime-local], [type=time]):disabled {opacity:0.4;}.widget-wrapper.svelte-oqh0x4 input[aria-invalid=true]:is([type=color],
646
646
  [type=date],
@@ -685,7 +685,7 @@ Minimum version required to store current data is: `+I+`.
685
685
  @media (width < 768px) {.columns.svelte-11jfjf5 {flex-direction:column;gap:0;}
686
686
  }.columns.svelte-11jfjf5 .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}
687
687
  @media (width < 768px) {.columns.svelte-11jfjf5 .column {width:100%;height:33.3333333333%;}
688
- }.columns.svelte-11jfjf5 header:where(.svelte-11jfjf5) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-11jfjf5 header:where(.svelte-11jfjf5) h3:where(.svelte-11jfjf5) {font-size:var(--sui-font-size-x-large);}`};function Hge(t,e){ae(e,!0),xe(t,qge);const[n,r]=me(),i=()=>z(ue,"$_",n);{const o=a=>{var l=Bge(),u=F(l);is(u,{class:"column","aria-labelledby":"draft-column-title",children:(h,p)=>{var g=zge(),m=F(g),v=F(m);W(b=>Q(v,b),[()=>i()("status.drafts")]),T(h,g)},$$slots:{default:!0}});var d=D(u,2);is(d,{class:"column","aria-labelledby":"review-column-title",children:(h,p)=>{var g=Uge(),m=F(g),v=F(m);W(b=>Q(v,b),[()=>i()("status.in_review")]),T(h,g)},$$slots:{default:!0}});var f=D(d,2);is(f,{class:"column","aria-labelledby":"ready-column-title",children:(h,p)=>{var g=jge(),m=F(g),v=F(m);W(b=>Q(v,b),[()=>i()("status.ready")]),T(h,g)},$$slots:{default:!0}}),T(a,l)};let s=_(()=>i()("editorial_workflow"));kc(t,{get"aria-label"(){return c(s)},main:o,$$slots:{main:!0}})}le(),r()}var Gge=M("<!> <!>",1),Wge=M('<!> <!> <div role="none" class="page-root svelte-1afhyqr"><!></div> <!> <!> <!> <!> <!>',1);const Kge={hash:"svelte-1afhyqr",code:".page-root.svelte-1afhyqr {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}"};function Vge(t,e){ae(e,!0),xe(t,Kge);const[n,r]=me(),i=()=>z(Nw,"$selectedPageName",n),o=()=>z(MF,"$canShowMobileSignInDialog",n),s=()=>z(xn,"$isSmallScreen",n),a={collections:She,assets:nse,search:Ige,workflow:Hge,config:fse,menu:Lpe,settings:Mge},l=_(()=>a[i()]),u=()=>{Ye(cc,!1),Ye(tl,!1);const{path:k}=fs(),{pageName:x}=k.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};x?i()!==x&&Ye(Nw,x):window.location.replace("#/collections"),x==="collections"?Ye(Rl,"entries"):x==="assets"?Ye(Rl,"assets"):x!=="search"&&Ye(Rl,null)};Zt(()=>{u()});var d=Wge();ai("hashchange",Ul,()=>{u()});var f=R(d);{var h=k=>{var x=Gge(),$=R(x);Ihe($,{});var I=D($,2);sge(I,{}),T(k,x)};U(f,k=>{o()&&k(h)})}var p=D(f,2);{var g=k=>{Ipe(k,{})};U(p,k=>{s()||k(g)})}var m=D(p,2),v=F(m);lr(v,()=>c(l),(k,x)=>{x(k,{})});var b=D(m,2);{var y=k=>{Lhe(k,{})};U(b,k=>{s()&&k(y)})}var w=D(b,2);cse(w,{});var E=D(w,2);lse(E,{});var C=D(E,2);The(C,{});var S=D(C,2);Che(S,{}),T(t,d);var A=le({pages:a,selectPage:u});return r(),A}const Yge={collections:"Collections",contents:"Contents",entries:"Entries",files:"Files",assets:"Assets",media:"Media",workflow:"Workflow",editorial_workflow:"Editorial Workflow",menu:"Menu",user_name:"User Name",password:"Password",sign_in:"Sign In",sign_in_with_mobile:"Sign In with Mobile",sign_in_with_mobile_instruction:"Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.",signed_in_as_x:"Signed In as {name}",working_with_local_repo:"Working with Local Repository",working_with_test_repo:"Working with Test Repository",sign_out:"Sign Out",create:"New",select:"Select",select_all:"Select All",upload:"Upload",copy:"Copy",download:"Download",duplicate:"Duplicate",delete:"Delete",save:"Save",saving:"Saving…",rename:"Rename",update:"Update",replace:"Replace",add:"Add",remove:"Remove",remove_x:"Remove {name}",clear:"Clear",expand:"Expand",expand_all:"Expand All",collapse:"Collapse",collapse_all:"Collapse All",insert:"Insert",restore:"Restore",discard:"Discard",searching:"Searching…",no_results:"No results found.",global:"Global",primary:"Primary",secondary:"Secondary",collection:"Collection",folder:"Folder",api_key:"API Key",details:"Details",back:"Back",loading:"Loading…",later:"Later",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site Configuration…",loading_site_data:"Loading Site Data…",loading_site_data_error:"There was an error while loading site data.",sign_in_with_x:"Sign In with {service}",sign_in_with_x_using_pat:"Sign In with {service} Using PAT",sign_in_using_pat_title:"Sign In Using Personal Access Token",sign_in_using_pat_description:"Enter your token below. It must have read/write access to the repository content.",personal_access_token:"Personal Access Token",authorizing:"Authorizing…",signing_in:"Signing in…",work_with_local_repo:"Work with Local Repository",work_with_local_repo_description:"Click the button to select the root directory of the “{repo}” repository.",work_with_local_repo_description_no_repo:"Click the button to select the root directory of your Git repository.",work_with_test_repo:"Work with Test Repository",sign_in_error:{not_project_root:"The folder you have selected is not a repository root directory. Please try again.",picker_dismissed:"A repository root directory could not be selected. Please try again.",authentication_aborted:"Authentication aborted. Please try again.",invalid_token:"The provided token is invalid. Please check and try again.",UNSUPPORTED_BACKEND:"Your Git backend is not supported by the authenticator.",UNSUPPORTED_DOMAIN:"Your domain is not allowed to use the authenticator.",MISCONFIGURED_CLIENT:"OAuth app client ID or secret is not configured.",AUTH_CODE_REQUEST_FAILED:"Failed to receive an authorization code. Please try again later.",CSRF_DETECTED:"Potential CSRF attack detected. Authentication flow aborted.",TOKEN_REQUEST_FAILED:"Failed to request an access token. Please try again later.",TOKEN_REFRESH_FAILED:"Failed to refresh the access token. Please try again later.",MALFORMED_RESPONSE:"Server responded with malformed data. Please try again later."},backend_unsupported_version:"The {name} backend requires {name} {version} or later.",repository_no_access:"You don’t have access to the “{repo}” repository.",repository_not_found:"The “{repo}” repository doesn’t exist.",repository_empty:"The “{repo}” repository has no branches.",branch_not_found:"The “{repo}” repository doesn’t have the “{branch}” branch.",unexpected_error:"Unexpected Error",entry_parse_error:"There was an error while parsing an entry file. Check the browser console for details.",entry_parse_errors:"There were errors while parsing entry files. Check the browser console for details.",mobile_promo_title:"Sveltia CMS is now available on mobile!",mobile_promo_button:"Give it a try",visit_live_site:"Visit Live Site",switch_page:"Switch Page",search_placeholder_entries:"Search for entries…",search_placeholder_assets:"Search for assets…",search_placeholder_all:"Search for entries and assets…",create_entry_or_assets:"Create Entry or Assets",publish_changes:"Publish Changes",publishing_changes:"Publishing Changes…",publishing_changes_failed:"Changes could not be published. Please try again later.",show_notifications:"Show Notifications",notifications:"Notifications",show_account_menu:"Show Account Menu",account:"Account",live_site:"Live Site",git_repository:"Git Repository",settings:"Settings",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",update_available:"The latest version of Sveltia CMS is available.",update_now:"Update Now",backend_status:{minor_incident:"{service} is experiencing a minor incident. Your workflow may be potentially affected.",major_incident:"{service} is experiencing a major incident. You may want to wait until the situation has improved."},content_library:"Content Library",asset_library:"Asset Library",asset_location:{repository:"Your Site",external:"External Locations",stock_photos:"Stock Photos"},collection_assets:"Collection Assets",entry_list:"Entry List",file_list:"File List",asset_list:"Asset List",x_collection:"“{collection}” Collection",x_asset_folder:"“{folder}” Asset Folder",viewing_collection_list:"You’re now viewing the collection list.",viewing_asset_folder_list:"You’re now viewing the asset folder list.",viewing_x_collection_many_entries:"You’re now viewing the “{collection}” collection, which has {count} entries.",viewing_x_collection_one_entry:"You’re now viewing the “{collection}” collection, which has one entry.",viewing_x_collection_no_entries:"You’re now viewing the “{collection}” collection, which has no entries yet.",viewing_x_asset_folder_many_assets:"You’re now viewing the “{folder}” asset folder, which has {count} assets.",viewing_x_asset_folder_one_asset:"You’re now viewing the “{folder}” asset folder, which has one asset.",viewing_x_asset_folder_no_assets:"You’re now viewing the “{folder}” asset folder, which has no assets yet.",singleton_selected_announcement:"Press Enter to edit the “{file}” file.",collection_not_found:"Collection not found",file_not_found:"File not found.",x_of_x_selected:"{selected} of {total} selected",switch_view:"Switch View",list_view:"List View",grid_view:"Grid View",switch_to_list_view:"Switch to List View",switch_to_grid_view:"Switch to Grid View",sort:"Sort",sorting_options:"Sorting Options",sort_keys:{none:"None",name:"Name",slug:"Slug",commit_author:"Updated by",commit_date:"Updated on"},ascending:"{label}, A to Z",ascending_date:"{label}, old to new",descending:"{label}, Z to A",descending_date:"{label}, new to old",filter:"Filter",filtering_options:"Filtering Options",group:"Group",grouping_options:"Grouping Options",type:"Type",all:"All",image:"Image",video:"Video",audio:"Audio",document:"Document",other:"Other",show_assets:"Show Assets",hide_assets:"Hide Assets",show_info:"Show Info",hide_info:"Hide Info",all_assets:"All Assets",global_assets:"Global Assets",creating_entries_disabled_by_admin:"Creating new entries in this collection is disabled by the administrator.",creating_entries_disabled_by_limit:"You cannot add new entries to this collection because it has reached its limit of {limit} entries.",back_to_collection:"Back to Collection",collection_list:"Collection List",back_to_collection_list:"Back to Collection List",asset_folder_list:"Asset Folder List",back_to_asset_folder_list:"Back to Asset Folder List",search_results:"Search Results",search_results_for_x:"Search Results for “{terms}”",viewing_entry_search_results:"You’re now viewing search results for “{terms}”. We’ve found {entries}.",viewing_asset_search_results:"You’re now viewing search results for “{terms}”. We’ve found {assets}.",many_entries:"{count} entries",one_entry:"one entry",no_entries:"no entries",many_assets:"{count} assets",one_asset:"one asset",no_assets:"no assets",no_files_found:"No files found.",no_entries_found:"No entries found.",upload_assets:"Upload New Assets",edit_options:"Edit Options",show_edit_options:"Show Edit Options",edit_asset:"Edit Asset",edit_x:"Edit {name}",wrap_long_lines:"Wrap Long Lines",rename_asset:"Rename Asset",rename_x:"Rename {name}",enter_new_name_for_asset:"Enter a new name below.",enter_new_name_for_asset_with_one_entry:"Enter a new name below. An entry using the asset will also be updated.",enter_new_name_for_asset_with_many_entries:"Enter a new name below. {count} entries using the asset will also be updated.",enter_new_name_for_asset_error:{empty:"File name cannot be empty.",character:"File name cannot contain special characters.",duplicate:"This file name is used for another asset."},replace_asset:"Replace Asset",replace_x:"Replace {name}",tap_to_browse:"Tap to browse…",drop_file_or_click_to_browse:"Drop a file here or click to browse…",drop_files_or_click_to_browse:"Drop files here or click to browse…",drop_image_file_or_click_to_browse:"Drop an image file here or click to browse…",drop_image_files_or_click_to_browse:"Drop image files here or click to browse…",drop_file_here:"Drop a file here",drop_files_here:"Drop files here",unsupported_file_type:"Unsupported File Type",dropped_file_type_mismatch:"The dropped file is not the {type} type. Please try again.",dropped_image_type_mismatch:"The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.",choose_file:"Choose File",choose_files:"Choose Files",delete_asset:"Delete Asset",delete_assets:"Delete Assets",delete_selected_asset:"Delete Selected Asset",delete_selected_assets:"Delete Selected Assets",confirm_deleting_this_asset:"Are you sure to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure to delete all the assets?",delete_entry:"Delete Entry",delete_entries:"Delete Entries",delete_selected_entry:"Delete Selected Entry",delete_selected_entries:"Delete Selected Entries",confirm_deleting_this_entry:"Are you sure to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure to delete all the entries and associated assets?",processing_file:"Processing a file. This may take a while.",processing_files:"Processing files. This may take a while.",uploading_files:"Uploading Files",confirm_replacing_file:"Are you sure to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure to save the following {count} files to the “{folder}” folder?",oversized_files:"Oversized Files",warning_oversized_file:"This file cannot be uploaded because it exceeds the maximum size of {size}. Please reduce the size or select a different file.",warning_oversized_files:"These files cannot be uploaded because they exceed the maximum size of {size}. Please reduce the sizes or select different files.",file_meta:"{type} · {size}",file_meta_converted_from_x:"(converted from {type})",no_entries_created:"This collection has no entries yet.",create_new_entry:"Create New Entry",entry:"Entry",index_file:"Index File",no_files_in_collection:"No files available in this collection.",asset_info:"Asset Info",select_asset_show_info:"Select an asset to show the info.",duplicate_entry:"Duplicate Entry",entry_duplicated:"Entry has been duplicated. It’s now a new draft.",entry_validation_error:"One field has an error. Please correct it to save the entry.",entry_validation_errors:"{count} fields have an error. Please correct them to save the entry.",entry_saved:"Entry has been saved.",entry_saved_and_published:"Entry has been saved and published.",entry_deleted:"Entry has been deleted.",entries_deleted:"{count} entries have been deleted.",asset_saved:"Asset has been saved.",asset_saved_and_published:"Asset has been saved and published.",assets_saved:"{count} assets have been saved.",assets_saved_and_published:"{count} assets have been saved and published.",asset_url_copied:"Asset URL has been copied to clipboard.",asset_urls_copied:"Asset URLs have been copied to clipboard.",asset_path_copied:"Asset file path has been copied to clipboard.",asset_paths_copied:"Asset file paths have been copied to clipboard.",asset_data_copied:"Asset file has been copied to clipboard.",asset_downloaded:"Asset file has been downloaded.",assets_downloaded:"Asset files have been downloaded.",asset_moved:"Asset has been moved.",assets_moved:"{count} assets have been moved.",asset_renamed:"Asset has been renamed.",assets_renamed:"{count} assets have been renamed.",asset_deleted:"Asset has been deleted.",assets_deleted:"{count} assets have been deleted.",content_editor:"Content Editor",restore_backup_title:"Restore Draft",restore_backup_description:"This entry has a backup from {datetime}. Do you want to restore the edited draft?",draft_backup_saved:"Draft backup has been saved.",draft_backup_restored:"Draft backup has been restored.",draft_backup_deleted:"Draft backup has been deleted.",cancel_editing:"Cancel Editing",create_entry_title:"Creating {name}",create_entry_announcement:"You’re now creating a new entry in the “{collection}” collection.",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"You’re now editing the “{entry}” entry in the “{collection}” collection.",edit_file_announcement:"You’re now editing the “{file}” file in the “{collection}” collection.",edit_singleton_announcement:"You’re now editing the “{file}” file.",save_and_publish:"Save and Publish",save_without_publishing:"Save without Publishing",show_editor_options:"Show Editor Options",editor_options:"Editor Options",show_preview:"Show Preview",sync_scrolling:"Sync Scrolling",switch_locale:"Switch Locale",locale_content_disabled_short:"(disabled)",locale_content_error_short:"(error)",edit:"Edit",preview:"Preview",edit_x_locale:"Edit {locale} Content",preview_x_locale:"Preview {locale} Content",content_preview:"Content Preview",show_content_options_x_locale:"Show {locale} Content Options",content_options_x_locale:"{locale} Content Options",x_field:"“{field}” Field",show_field_options:"Show Field Options",field_options:"Field Options",unsupported_widget_x:"Unsupported widget: {name}",enable_x_locale:"Enable {locale}",reenable_x_locale:"Reenable {locale}",disable_x_locale:"Disable {locale}",locale_x_has_been_disabled:"The {locale} content has been disabled.",locale_x_now_disabled:"The {locale} content is now disabled. It will be deleted when you save the entry.",view_in_repository:"View in Repository",view_on_x:"View on {service}",view_on_live_site:"View on Live Site",copy_from:"Copy from…",copy_from_x:"Copy from {locale}",translation_options:"Translation Options",translate:"Translate",translate_field:"Translate Field",translate_fields:"Translate Fields",translate_from:"Translate from…",translate_from_x:"Translate from {locale}",revert_changes:"Revert Changes",revert_all_changes:"Revert All Changes",edit_slug:"Edit Slug",edit_slug_warning:"Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with the Relation widget, so you’ll need to manually update such references along with other links.",edit_slug_error:{empty:"The slug cannot be empty.",duplicate:"This slug is used for another entry."},required:"Required",editor:{translation:{none:"Nothing has been translated.",started:"Translating…",error:"There was an error while translating.",complete:{one:"Translated the field from {source}.",many:"Translated {count} fields from {source}."}},copy:{none:"Nothing has been copied.",complete:{one:"Copied the field from {source}.",many:"Copied {count} fields from {source}."}}},validation:{value_missing:"This field is required.",range_underflow:{number:"Value must be greater than or equal to {min}.",select_many:"You have to select at least {min} items.",select_one:"You have to select at least {min} item.",add_many:"You have to add at least {min} items.",add_one:"You have to add at least {min} item."},range_overflow:{number:"Value must be less than or equal to {max}.",select_many:"You cannot select more than {max} items.",select_one:"You cannot select more than {max} item.",add_many:"You cannot add more than {max} items.",add_one:"You cannot add more than {max} item."},too_short:{one:"You must enter at least {min} character.",many:"You must enter at least {min} characters."},too_long:{one:"You cannot enter more than {max} character.",many:"You cannot enter more than {max} characters."},type_mismatch:{number:"Please enter a number.",email:"Please enter a valid email.",url:"Please enter a valid URL."}},saving_entry:{error:{title:"Error",description:"There was an error while saving the entry. Please try again later."}},viewing_x_asset_details:"You’re viewing the details of the “{name}” asset.",asset_editor:"Asset Editor",preview_unavailable:"Preview Unavailable.",public_url:"Public URL",public_urls:"Public URLs",file_path:"File Path",file_paths:"File Paths",file_data:"File Data",kind:"Kind",size:"Size",dimensions:"Dimensions",duration:"Duration",used_in:"Used in",created_date:"Created Date",location:"Location",map_lat_lng:"Map showing latitude {latitude}, longitude {longitude}",select_file:"Select File",select_image:"Select Image",replace_file:"Replace File",replace_image:"Replace Image",remove_file:"Remove File",remove_image:"Remove Image",remove_this_item:"Remove This Item",move_up:"Move Up",move_down:"Move Down",add_x:"Add {name}",add_item_above:"Add Item Above",add_item_below:"Add Item Below",select_list_type:"Select List Type",opacity:"Opacity",unselected_option:"(None)",assets_dialog:{title:{file:"Select File",image:"Select Image"},search_for_file:"Search for Files",search_for_image:"Search for Images",locations:"Locations",folder:{field:"Field Assets",entry:"Entry Assets",file:"File Assets",collection:"Collection Assets",global:"Global Assets"},error:{invalid_key:"Your API Key is invalid or expired. Please double check and try again.",search_fetch_failed:"There was an error while searching assets. Please try again later.",image_fetch_failed:"There was an error while downloading the selected asset. Please try again later."},available_images:"Available Images",enter_url:"Enter URL",enter_file_url:"Enter URL of the file:",enter_image_url:"Enter URL of the image:",large_file:{title:"Large File"},photo_credit:{title:"Photo Credit",description:"Use the following credit if possible:"},unsaved:"Unsaved"},character_counter:{min_max:{one:"{count} character entered. Minimum: {min}. Maximum: {max}.",many:"{count} characters entered. Minimum: {min}. Maximum: {max}."},min:{one:"{count} character entered. Minimum: {min}.",many:"{count} characters entered. Minimum: {min}."},max:{one:"{count} character entered. Maximum: {max}.",many:"{count} characters entered. Maximum: {max}."}},youtube_video_player:"YouTube video player",today:"Today",now:"Now",editor_components:{image:"Image",src:"Source",alt:"Alt Text",title:"Title",link:"Link"},key_value:{key:"Key",value:"Value",action:"Action",empty_key:"Key is required.",duplicate_key:"Key must be unique."},find_place:"Find a Place",use_your_location:"Use Your Location",geolocation_error_title:"Geolocation Error",geolocation_error_body:"There was an error while retrieving your location.",geolocation_unsupported:"Geolocation API is not supported by this browser.",boolean:{true:"Yes",false:"No"},cloud_storage:{invalid:"The service is not configured properly.",auth:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",parse_failed:"The configuration file could not be parsed.",parse_failed_invalid_object:"The configuration file is not a valid JavaScript object.",parse_failed_unsupported_type:"The configuration file is not a valid file type. Only YAML and JSON are supported.",no_collection:"Collections are not defined in the configuration file.",missing_backend:"The backend is not defined in the configuration file.",missing_backend_name:"The backend name is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",missing_repository:"The repository is not defined in the configuration file.",invalid_repository:"The configured repository is invalid. It must be in “owner/repo” format.",oauth_implicit_flow:"The configured authentication method (implicit flow) is not supported.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",missing_media_folder:"The media folder is not defined in the configuration file.",invalid_media_folder:"The configured media folder is invalid. It must be a string.",invalid_public_folder:"The configured public folder is invalid. It must be a string.",public_folder_relative_path:"The configured public folder is invalid. It must be an absolute path starting with “/”.",public_folder_absolute_url:"An absolute URL for the public folder option is not supported.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development is disabled in your browser. <a>Here’s how to enable it</a>."},status:{drafts:"Drafts",in_review:"In Review",ready:"Ready"},categories:"Categories",prefs:{changes:{api_key_saved:"API key has been saved.",api_key_removed:"API key has been removed."},error:{permission_denied:"Browser storage (Cookie) access has been denied. Please check the permission and try again."},appearance:{title:"Appearance",theme:"Theme",select_theme:"Select Theme"},theme:{auto:"Auto",dark:"Dark",light:"Light"},language:{title:"Language",ui_language:{title:"User Interface Language",select_language:"Select Language"}},contents:{title:"Contents",editor:{title:"Editor",use_draft_backup:{switch_label:"Automatically back up entry drafts"},close_on_save:{switch_label:"Close the editor after saving a draft"},close_with_escape:{switch_label:"Close the editor with the Escape key"}}},i18n:{title:"Internationalization",default_translator:{title:"Default Translation Service",select_service:"Select Service"},translator:{field_label:"{service} Key",description:"Sign up for <a {homeHref}>{service}</a> and enter <a {apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields."}},media:{title:"Media",stock_photos:{title:"{service} Free Images",field_label:"{service} API Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.",credit:"Photos provided by {service}",providers_disabled:"Stock asset providers are disabled by the administrator."}},accessibility:{title:"Accessibility",underline_links:{title:"Underline Links",description:"Show underline for links in the entry preview and user interface labels.",switch_label:"Always Underline Links"}},advanced:{title:"Advanced",beta:{title:"Beta Features",description:"Enable some beta features that may be unstable or unlocalized.",switch_label:"Join Beta Program"},developer_mode:{title:"Developer Mode",description:"Enable some developer-oriented features, including detailed console logs and native context menus.",switch_label:"Enable Developer Mode"},deploy_hook:{title:"Deploy Hook",description:"Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL has been removed."}}},keyboard_shortcuts_:{view_content_library:"View Content Library",view_asset_library:"View Asset Library",search:"Search for entries and assets",create_entry:"Create a new entry",save_entry:"Save an entry",cancel_editing:"Cancel entry editing"},file_type_labels:{avif:"AVIF image",bmp:"Bitmap image",gif:"GIF image",ico:"Icon",jpeg:"JPEG image",jpg:"JPEG image",png:"PNG image",svg:"SVG image",tif:"TIFF image",tiff:"TIFF image",webp:"WebP image",avi:"AVI video",m4v:"MP4 video",mov:"QuickTime video",mp4:"MP4 video",mpeg:"MPEG video",mpg:"MPEG video",ogg:"Ogg video",ogv:"Ogg video",ts:"MPEG video",webm:"WebM video","3gp":"3GPP video","3g2":"3GPP2 video",aac:"AAC audio",mid:"MIDI",midi:"MIDI",m4a:"MP4 audio",mp3:"MP3 audio",oga:"Ogg audio",opus:"OPUS audio",wav:"WAV audio",weba:"WebM audio",csv:"CSV spreadsheet",doc:"Word document",docx:"Word document",odp:"OpenDocument presentation",ods:"OpenDocument spreadsheet",odt:"OpenDocument text",pdf:"PDF document",ppt:"PowerPoint presentation",pptx:"PowerPoint presentation",rtf:"Rich text document",xls:"Excel spreadsheet",xlsx:"Excel spreadsheet",html:"HTML text",js:"JavaScript",json:"JSON text",md:"Markdown text",toml:"TOML text",yaml:"YAML text",yml:"YAML text"},file_size_units:{b:"{size} bytes",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},Zge=Object.freeze(Object.defineProperty({__proto__:null,strings:Yge},Symbol.toStringTag,{value:"Module"})),Jge={collections:"コレクション",contents:"コンテンツ",entries:"エントリー",files:"ファイル",assets:"アセット",media:"メディア",workflow:"ワークフロー",editorial_workflow:"編集ワークフロー",menu:"メニュー",user_name:"ユーザー名",password:"パスワード",sign_in:"ログイン",sign_in_with_mobile:"モバイルでログイン",sign_in_with_mobile_instruction:"以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。",signed_in_as_x:"{name} としてログイン中",working_with_local_repo:"ローカルレポジトリで作業中",working_with_test_repo:"テストレポジトリで作業中",sign_out:"ログアウト",create:"新規作成",select:"選択",select_all:"すべて選択",upload:"アップロード",copy:"コピー",download:"ダウンロード",duplicate:"複製",delete:"削除",save:"保存",saving:"保存中…",rename:"名前を変更",update:"更新",replace:"差し替え",add:"追加",remove:"削除",remove_x:"{name} を削除",clear:"クリア",expand:"広げる",expand_all:"すべて広げる",collapse:"折り畳む",collapse_all:"すべて折り畳む",insert:"挿入",restore:"復元",discard:"破棄",searching:"検索中…",no_results:"結果が見つかりませんでした。",global:"グローバル",primary:"プライマリー",secondary:"セカンダリー",collection:"コレクション",folder:"フォルダー",api_key:"API キー",details:"詳細",back:"戻る",loading:"読み込み中…",later:"後で",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",sign_in_with_x_using_pat:"{service} で PAT を使用してログイン",sign_in_using_pat_title:"個人用アクセストークンでログイン",sign_in_using_pat_description:"以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。",personal_access_token:"個人用アクセストークン",authorizing:"認証中…",signing_in:"ログイン中…",work_with_local_repo:"ローカルレポジトリで作業",work_with_local_repo_description:"ボタンをクリックして「{repo}」レポジトリのルートディレクトリを選択してください。",work_with_local_repo_description_no_repo:"ボタンをクリックして Git レポジトリのルートディレクトリを選択してください。",work_with_test_repo:"テストレポジトリで作業",sign_in_error:{not_project_root:"選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。",picker_dismissed:"レポジトリのルートディレクトリを選択できませんでした。再度お試しください。",authentication_aborted:"認証が中断されました。再度お試しください。",invalid_token:"入力されたトークンが無効です。確認して再度お試しください。",UNSUPPORTED_BACKEND:"この認証アプリはお使いの Git バックエンドに対応していません。",UNSUPPORTED_DOMAIN:"この認証アプリではお使いのドメインの使用は許可されていません。",MISCONFIGURED_CLIENT:"OAuth アプリのクライアント ID またはシークレットが設定されていません。",AUTH_CODE_REQUEST_FAILED:"認証コードを取得できませんでした。後で再度お試しください。",CSRF_DETECTED:"CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。",TOKEN_REQUEST_FAILED:"アクセストークンを要求できませんでした。後で再度お試しください。",TOKEN_REFRESH_FAILED:"アクセストークンの更新に失敗しました。後で再度お試しください。",MALFORMED_RESPONSE:"サーバーから不正なデータが返されました。後で再度お試しください。"},backend_unsupported_version:"{name} バックエンドには {name} {version} 以降のバージョンが必要です。",repository_no_access:"あなたには「{repo}」レポジトリへのアクセス権がありません。",repository_not_found:"「{repo}」レポジトリは存在しません。",repository_empty:"「{repo}」レポジトリにはブランチがありません。",branch_not_found:"「{repo}」レポジトリに「{branch}」ブランチは存在しません。",unexpected_error:"予期せぬエラー",entry_parse_error:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",entry_parse_errors:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",visit_live_site:"管理対象サイトを開く",switch_page:"ページを切り替え",search_placeholder_entries:"エントリーを検索…",search_placeholder_assets:"アセットを検索…",search_placeholder_all:"エントリーとアセットを検索…",create_entry_or_assets:"エントリーまたはアセットを作成",publish_changes:"変更を公開",publishing_changes:"変更を公開しています…",publishing_changes_failed:"変更を公開できませんでした。後で再度お試しください。",show_notifications:"通知を表示",notifications:"通知",show_account_menu:"アカウントメニューを表示",account:"アカウント",live_site:"管理対象サイト",git_repository:"Git レポジトリ",settings:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",mobile_promo_title:"Sveltia CMS がモバイルに対応しました!",mobile_promo_button:"試してみる",update_available:"Sveltia CMS の最新版が利用可能です。",update_now:"今すぐ更新",backend_status:{minor_incident:"{service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。",major_incident:"{service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。"},content_library:"コンテンツライブラリ",asset_library:"アセットライブラリ",asset_location:{repository:"あなたのサイト",external:"外部の場所",stock_photos:"ストックフォト"},collection_assets:"コレクションアセット",entry_list:"エントリーリスト",file_list:"ファイルリスト",asset_list:"アセットリスト",x_collection:"「{collection}」コレクション",x_asset_folder:"「{folder}」アセットフォルダー",viewing_collection_list:"コレクションリストを表示しています。",viewing_asset_folder_list:"アセットフォルダーリストを表示しています。",viewing_x_collection_many_entries:"「{collection}」コレクションを表示しています。ここには {count} 個のエントリーがあります。",viewing_x_collection_one_entry:"「{collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。",viewing_x_collection_no_entries:"「{collection}」コレクションを表示しています。ここにはまだエントリーがありません。",viewing_x_asset_folder_many_assets:"「{folder}」アセットフォルダーを表示しています。ここには {count} 個のアセットがあります。",viewing_x_asset_folder_one_asset:"「{folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。",viewing_x_asset_folder_no_assets:"「{folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。",singleton_selected_announcement:"「{file}」ファイルを編集するには Enter キーを押してください。",collection_not_found:"コレクションが見つかりませんでした",file_not_found:"ファイルが見つかりませんでした",x_of_x_selected:"{total} 個のうち {selected} 個を選択中",switch_view:"ビューを切り替え",list_view:"リストビュー",grid_view:"グリッドビュー",switch_to_list_view:"リストビューに切り替え",switch_to_grid_view:"グリッドビューに切り替え",sort:"並び替え",sorting_options:"並べ替えオプション",sort_keys:{none:"なし",name:"名前",slug:"スラッグ",commit_author:"更新者",commit_date:"更新日時"},ascending:"{label} (A–Z)",ascending_date:"{label} (古い順)",descending:"{label} (Z–A)",descending_date:"{label} (新しい順)",filter:"絞り込み",filtering_options:"絞り込みオプション",group:"グループ化",grouping_options:"グループ化オプション",type:"種類",all:"すべて",image:"画像",video:"動画",audio:"音声",document:"書類",other:"その他",show_assets:"アセットを表示",hide_assets:"アセットを隠す",show_info:"情報を表示",hide_info:"情報を隠す",all_assets:"すべてのアセット",global_assets:"グローバルアセット",creating_entries_disabled_by_admin:"このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。",creating_entries_disabled_by_limit:"このコレクションは最大の {limit} エントリーに達したため、新しいエントリーを作成することはできません。",back_to_collection:"コレクションへ戻る",collection_list:"コレクションリスト",back_to_collection_list:"コレクションリストへ戻る",asset_folder_list:"アセットフォルダーリスト",back_to_asset_folder_list:"アセットフォルダーリストへ戻る",search_results:"検索結果",search_results_for_x:"「{terms}」の検索結果",viewing_entry_search_results:"「{terms}」の検索結果を表示しています。{entries} が見つかりました。",viewing_asset_search_results:"「{terms}」の検索結果を表示しています。{assets} が見つかりました。",many_entries:"{count} 個のエントリー",one_entry:"1 個のエントリー",no_entries:"0 個のエントリー",many_assets:"{count} 個のアセット",one_asset:"1 個のアセット",no_assets:"0 個のアセット",no_files_found:"ファイルは見つかりませんでした。",no_entries_found:"エントリーは見つかりませんでした。",upload_assets:"新しいアセットをアップロード",edit_options:"編集オプション",show_edit_options:"編集オプションを表示",edit_asset:"アセットを編集",edit_x:"{name} を編集",wrap_long_lines:"長い行を折り返す",rename_asset:"アセットの名前を変更",rename_x:"{name} の名前を変更",enter_new_name_for_asset:"新しい名前を以下に入力してください。",enter_new_name_for_asset_with_one_entry:"新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。",enter_new_name_for_asset_with_many_entries:"新しい名前を以下に入力してください。このアセットを使用している {count} 個のエントリーも更新されます。",enter_new_name_for_asset_error:{empty:"ファイル名を空白にすることはできません。",character:"ファイル名に特別な文字を含めることはできません。",duplicate:"このファイル名は他のアセットに使われています。"},replace_asset:"アセットを差し替え",replace_x:"{name} を差し替え",tap_to_browse:"タップして参照…",drop_file_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_files_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_image_file_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_image_files_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_file_here:"ここにファイルをドロップ",drop_files_here:"ここにファイルをドロップ",unsupported_file_type:"非対応ファイル形式",dropped_file_type_mismatch:"ドロップされたファイルは {type} 形式ではありません。再度お試しください。",dropped_image_type_mismatch:"ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。",choose_file:"ファイルを選択",choose_files:"ファイルを選択",delete_asset:"アセットを削除",delete_assets:"アセットを削除",delete_selected_asset:"選択されたアセットを削除",delete_selected_assets:"選択されたアセットを削除",confirm_deleting_this_asset:"このアセットを削除してもよろしいですか?",confirm_deleting_selected_asset:"選択されたファイルを削除してもよろしいですか?",confirm_deleting_selected_assets:"選択された {count} 個のファイルを削除してもよろしいですか?",confirm_deleting_all_assets:"すべてのアセットを削除してもよろしいですか?",delete_entry:"エントリーを削除",delete_entries:"エントリーを削除",delete_selected_entry:"選択されたエントリーを削除",delete_selected_entries:"選択されたエントリーを削除",confirm_deleting_this_entry:"このエントリーを削除してもよろしいですか?",confirm_deleting_this_entry_with_assets:"このエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entry:"選択されたエントリーを削除してもよろしいですか?",confirm_deleting_selected_entry_with_assets:"選択されたエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entries:"選択された {count} 個のエントリーを削除してもよろしいですか?",confirm_deleting_selected_entries_with_assets:"選択された {count} 個のエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_all_entries:"すべてのエントリーを削除してもよろしいですか?",confirm_deleting_all_entries_with_assets:"すべてのエントリーと関連アセットを削除してもよろしいですか?",processing_file:"ファイルを処理しています。これには時間がかかる場合があります。",processing_files:"ファイルを処理しています。これには時間がかかる場合があります。",uploading_files:"アップロード対象ファイル",confirm_replacing_file:"「{name}」を以下のファイルと差し替えてもよろしいですか?",confirm_uploading_file:"以下のファイルを「{folder}」フォルダーに保存してもよろしいですか?",confirm_uploading_files:"以下の {count} 個のファイルを「{folder}」フォルダーに保存してもよろしいですか?",oversized_files:"サイズ超過ファイル",warning_oversized_file:"このファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。",warning_oversized_files:"これらのファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください",file_meta:"{type} · {size}",file_meta_converted_from_x:"({type} から変換)",no_entries_created:"このコレクションにはまだエントリーがありません。",create_new_entry:"新しいエントリーを作成",entry:"エントリー",index_file:"インデックスファイル",no_files_in_collection:"このコレクションにはファイルがありません。",asset_info:"アセット情報",select_asset_show_info:"アセットを選択すると情報が表示されます。",duplicate_entry:"エントリーを複製",entry_duplicated:"エントリーが複製され、新しい下書きとなりました。",entry_validation_error:"ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_validation_errors:"{count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_saved:"エントリーが保存されました。",entry_saved_and_published:"エントリーが保存、公開されました。",entry_deleted:"エントリーが削除されました。",entries_deleted:"{count} 個のエントリーが削除されました。",asset_saved:"アセットが保存されました。",asset_saved_and_published:"アセットが保存、公開されました。",assets_saved:"{count} 個のアセットが保存されました。",assets_saved_and_published:"{count} 個のアセットが保存、公開されました。",asset_url_copied:"アセット URL がクリップボードにコピーされました。",asset_urls_copied:"アセット URL がクリップボードにコピーされました。",asset_path_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_paths_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_data_copied:"アセットファイルがクリップボードにコピーされました。",asset_downloaded:"アセットファイルがダウンロードされました。",assets_downloaded:"アセットファイルがダウンロードされました。",asset_moved:"アセットが移動されました。",assets_moved:"{count} 個のアセットが移動されました。",asset_renamed:"アセットの名前が変更されました。",assets_renamed:"{count} 個のアセットの名前が変更されました。",asset_deleted:"アセットが削除されました。",assets_deleted:"{count} 個のアセットが削除されました。",content_editor:"コンテンツエディター",restore_backup_title:"下書きを復元",restore_backup_description:"このエントリーには {datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?",draft_backup_saved:"下書きのバックアップが保存されました。",draft_backup_restored:"下書きのバックアップが復元されました。",draft_backup_deleted:"下書きのバックアップが削除されました。",cancel_editing:"編集をキャンセル",create_entry_title:"{name} を作成",create_entry_announcement:"「{collection}」コレクションの新しいエントリーを作成しています。",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"「{collection}」コレクションの「{entry}」エントリーを編集しています。",edit_file_announcement:"「{collection}」コレクションの「{file}」ファイルを編集しています。",edit_singleton_announcement:"「{file}」ファイルを編集しています。",save_and_publish:"保存して公開",save_without_publishing:"公開せずに保存",show_editor_options:"エディターオプションを表示",editor_options:"エディターオプション",show_preview:"プレビューを表示",sync_scrolling:"スクロールを同期",switch_locale:"ロケールを切り替え",locale_content_disabled_short:"(無効)",locale_content_error_short:"(エラー)",edit:"編集",preview:"プレビュー",edit_x_locale:"{locale} コンテンツを編集",preview_x_locale:"{locale} コンテンツをプレビュー",content_preview:"コンテンツプレビュー",show_content_options_x_locale:"{locale} コンテンツのオプションを表示",content_options_x_locale:"{locale} コンテンツのオプション",x_field:"「{field}」フィールド",show_field_options:"フィールドオプションを表示",field_options:"フィールドオプション",unsupported_widget_x:"非対応ウィジェット: {name}",enable_x_locale:"{locale} を有効化",reenable_x_locale:"{locale} を再度有効化",disable_x_locale:"{locale} を無効化",locale_x_has_been_disabled:"{locale} コンテンツは無効化されています。",locale_x_now_disabled:"{locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。",view_in_repository:"レポジトリ内で見る",view_on_x:"{service} で見る",view_on_live_site:"管理対象サイトで見る",copy_from:"他の言語からコピー…",copy_from_x:"{locale} からコピー",translation_options:"翻訳オプション",translate:"翻訳",translate_field:"フィールドを翻訳",translate_fields:"フィールドを翻訳",translate_from:"他の言語から翻訳…",translate_from_x:"{locale} から翻訳",revert_changes:"変更を取り消す",revert_all_changes:"すべての変更を取り消す",edit_slug:"スラッグを編集",edit_slug_warning:"スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation ウィジェットで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。",edit_slug_error:{empty:"スラッグは空白にはできません。",duplicate:"このスラッグは他のエントリーに使われています。"},required:"必須",editor:{translation:{none:"翻訳されたフィールドはありません。",started:"翻訳中…",error:"翻訳中に問題が発生しました。",complete:{one:"{source} からフィールドを翻訳しました。",many:"{source} から {count} 個のフィールドを翻訳しました。"}},copy:{none:"コピーされたフィールドはありません。",complete:{one:"{source} からフィールドをコピーしました。",many:"{source} から {count} 個のフィールドをコピーしました。"}}},validation:{value_missing:"この項目は必須です。",range_underflow:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{select_many:"選択できるのは最大で {max} 項目です。",select_one:"選択できるのは最大で {max} 項目です。",add_many:"追加できるのは最大で {max} 項目です。",add_one:"追加できるのは最大で {max} 項目です。"},too_short:{one:"少なくとも {min} 文字は入力してください。",many:"少なくとも {min} 文字は入力してください。"},too_long:{one:"{max} 文字を超える入力はできません。",many:"{max} 文字を超える入力はできません。"},type_mismatch:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},saving_entry:{error:{title:"エラー",description:"エントリーを保存中に問題が発生しました。後で再度お試しください。"}},find_place:"場所を検索",use_your_location:"現在地を使用",geolocation_error_title:"位置情報エラー",geolocation_error_body:"あなたの現在地を取得できませんでした。",geolocation_unsupported:"お使いのブラウザーは位置情報 API をサポートしていません。",viewing_x_asset_details:"「{name}」アセットの詳細を表示しています。",asset_editor:"アセットエディター",preview_unavailable:"プレビューは表示できません",public_url:"公開 URL",public_urls:"公開 URL",file_path:"ファイルパス",file_paths:"ファイルパス",file_data:"ファイルデータ",kind:"種類",size:"サイズ",dimensions:"大きさ",duration:"再生時間",used_in:"使われているエントリー",created_date:"作成日時",location:"場所",map_lat_lng:"緯度 {latitude}、経度 {longitude} の地図",select_file:"ファイルを選択",select_image:"画像を選択",replace_file:"ファイルを差し替え",replace_image:"画像を差し替え",remove_file:"ファイルを削除",remove_image:"画像を削除",remove_this_item:"このアイテムを削除",move_up:"上へ移動",move_down:"下へ移動",add_x:"{name} を追加",add_item_above:"上にアイテムを追加",add_item_below:"下にアイテムを追加",select_list_type:"リストタイプを選択",opacity:"透明度",unselected_option:"(なし)",assets_dialog:{title:{file:"ファイルを選択",image:"画像を選択"},search_for_file:"ファイルを検索",search_for_image:"画像を検索",locations:"場所",folder:{field:"フィールドアセット",entry:"エントリーアセット",file:"ファイルアセット",collection:"コレクションアセット",global:"グローバルアセット"},error:{invalid_key:"あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。",search_fetch_failed:"アセットを検索中に問題が発生しました。後で再度お試しください。",image_fetch_failed:"選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。"},available_images:"利用可能な画像",enter_url:"URL を入力",enter_file_url:"ファイルの URL を入力:",enter_image_url:"画像の URL を入力:",large_file:{title:"大きなファイル"},photo_credit:{title:"写真クレジット",description:"可能であれば以下のクレジットを使ってください:"},unsaved:"未保存"},character_counter:{min_max:{one:"{count} 文字入力されています。最小: {min}。最大 {max}。",many:"{count} 文字入力されています。最小: {min}。最大 {max}。"},min:{one:"{count} 文字入力されています。最小: {min}。",many:"{count} 文字入力されています。最小: {min}。"},max:{one:"{count} 文字入力されています。最大: {max}。",many:"{count} 文字入力されています。最大: {max}。"}},youtube_video_player:"YouTube 動画プレーヤー",today:"今日",now:"現在時刻",editor_components:{image:"画像",src:"ソース",alt:"代替テキスト",title:"タイトル",link:"リンク"},key_value:{key:"キー",value:"値",action:"アクション",empty_key:"キーは必須です。",duplicate_key:"キーが重複しています。"},boolean:{true:"はい",false:"いいえ"},cloud_storage:{invalid:"このサービスは正しく設定されていません。",auth:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",parse_failed_unsupported_type:"設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML と JSON のみです。",no_collection:"設定ファイル内でコレクションが定義されていません。",missing_backend:"設定ファイル内でバックエンドが定義されていません。",missing_backend_name:"設定ファイル内でバックエンド名が定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",missing_repository:"設定ファイル内でレポジトリが定義されていません。",invalid_repository:"設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",missing_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",invalid_media_folder:"設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。",invalid_public_folder:"設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。",public_folder_relative_path:"設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。",public_folder_absolute_url:"パブリックフォルダーオプションの絶対 URL は非対応です。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"API キーが削除されました。"},error:{permission_denied:"ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。"},appearance:{title:"アピアランス",theme:"テーマ",select_theme:"テーマを選択"},theme:{auto:"自動",dark:"ダーク",light:"ライト"},language:{title:"言語",ui_language:{title:"ユーザーインターフェース言語",select_language:"言語を選択"}},contents:{title:"コンテンツ",editor:{title:"エディター",use_draft_backup:{switch_label:"エントリーの下書きを自動的にバックアップする"},close_on_save:{switch_label:"下書き保存後にエディターを閉じる"},close_with_escape:{switch_label:"Escape キーでエディターを閉じる"}}},i18n:{title:"国際化",default_translator:{title:"デフォルト翻訳サービス",select_service:"サービスを選択"},translator:{field_label:"{service} キー",description:"<a {homeHref}>{service}</a> にユーザー登録して、<a {apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}",providers_disabled:"ストックアセットプロバイダーは管理者によって無効化されています。"}},accessibility:{title:"アクセシビリティ",underline_links:{title:"リンクに下線を付ける",description:"エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。",switch_label:"常に下線を付ける"}},advanced:{title:"詳細",beta:{title:"ベータ機能",description:"不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。",switch_label:"ベータプログラムに参加する"},developer_mode:{title:"開発者モード",description:"詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。",switch_label:"開発者モードを有効にする"},deploy_hook:{title:"デプロイフック",description:"「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"}}},keyboard_shortcuts_:{view_content_library:"コンテンツライブラリを表示",view_asset_library:"アセットライブラリを表示",search:"エントリーとアセットを検索",create_entry:"新しいエントリーを作成",save_entry:"エントリーを保存",cancel_editing:"エントリーの編集をキャンセル"},file_type_labels:{avif:"AVIF 画像",bmp:"Bitmap 画像",gif:"GIF 画像",ico:"アイコン",jpeg:"JPEG 画像",jpg:"JPEG 画像",png:"PNG 画像",svg:"SVG 画像",tif:"TIFF 画像",tiff:"TIFF 画像",webp:"WebP 画像",avi:"AVI 動画",m4v:"MP4 動画",mov:"QuickTime 動画",mp4:"MP4 動画",mpeg:"MPEG 動画",mpg:"MPEG 動画",ogg:"Ogg 動画",ogv:"Ogg 動画",ts:"MPEG 動画",webm:"WebM 動画","3gp":"3GPP 動画","3g2":"3GPP2 動画",aac:"AAC 音声",mid:"MIDI",midi:"MIDI",m4a:"MP4 音声",mp3:"MP3 音声",oga:"Ogg 音声",opus:"OPUS 音声",wav:"WAV 音声",weba:"WebM 音声",csv:"CSV スプレッドシート",doc:"Word ドキュメント",docx:"Word ドキュメント",odp:"OpenDocument プレゼンテーション",ods:"OpenDocument スプレッドシート",odt:"OpenDocument テキスト",pdf:"PDF ドキュメント",ppt:"PowerPoint プレゼンテーション",pptx:"PowerPoint プレゼンテーション",rtf:"リッチテキストドキュメント",xls:"Excel スプレッドシート",xlsx:"Excel スプレッドシート",html:"HTML テキスト",js:"JavaScript",json:"JSON テキスト",md:"Markdown テキスト",toml:"TOML テキスト",yaml:"YAML テキスト",yml:"YAML テキスト"},file_size_units:{b:"{size} バイト",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},Xge=Object.freeze(Object.defineProperty({__proto__:null,strings:Jge},Symbol.toStringTag,{value:"Module"})),Qge=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":Zge,"/src/lib/locales/ja.js":Xge})).forEach(([e,{strings:n}])=>{const r=yn(e).filename;l0(r,n)}),OR({fallbackLocale:"en",initialLocale:oe(gt).locale||(ez()??"").split("-")[0]||"en"})};var eme=M('<link rel="icon"/>'),tme=M('<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>',1),nme=M('<div role="none" class="outer svelte-1c45245"><!> <!> <div role="none" class="main svelte-1c45245"><!> <!></div></div>'),rme=M('<!> <div role="status" class="svelte-1c45245"> </div>',1);const ime={hash:"svelte-1c45245",code:`@view-transition {navigation:auto;
688
+ }.columns.svelte-11jfjf5 header:where(.svelte-11jfjf5) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-11jfjf5 header:where(.svelte-11jfjf5) h3:where(.svelte-11jfjf5) {font-size:var(--sui-font-size-x-large);}`};function Hge(t,e){ae(e,!0),xe(t,qge);const[n,r]=me(),i=()=>z(ue,"$_",n);{const o=a=>{var l=Bge(),u=F(l);is(u,{class:"column","aria-labelledby":"draft-column-title",children:(h,p)=>{var g=zge(),m=F(g),v=F(m);W(b=>Q(v,b),[()=>i()("status.drafts")]),T(h,g)},$$slots:{default:!0}});var d=D(u,2);is(d,{class:"column","aria-labelledby":"review-column-title",children:(h,p)=>{var g=Uge(),m=F(g),v=F(m);W(b=>Q(v,b),[()=>i()("status.in_review")]),T(h,g)},$$slots:{default:!0}});var f=D(d,2);is(f,{class:"column","aria-labelledby":"ready-column-title",children:(h,p)=>{var g=jge(),m=F(g),v=F(m);W(b=>Q(v,b),[()=>i()("status.ready")]),T(h,g)},$$slots:{default:!0}}),T(a,l)};let s=_(()=>i()("editorial_workflow"));kc(t,{get"aria-label"(){return c(s)},main:o,$$slots:{main:!0}})}le(),r()}var Gge=M("<!> <!>",1),Wge=M('<!> <!> <div role="none" class="page-root svelte-1afhyqr"><!></div> <!> <!> <!> <!> <!>',1);const Kge={hash:"svelte-1afhyqr",code:".page-root.svelte-1afhyqr {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}"};function Vge(t,e){ae(e,!0),xe(t,Kge);const[n,r]=me(),i=()=>z(Nw,"$selectedPageName",n),o=()=>z(MF,"$canShowMobileSignInDialog",n),s=()=>z(xn,"$isSmallScreen",n),a={collections:She,assets:nse,search:Ige,workflow:Hge,config:fse,menu:Lpe,settings:Mge},l=_(()=>a[i()]),u=()=>{Ye(cc,!1),Ye(tl,!1);const{path:k}=fs(),{pageName:x}=k.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};x?i()!==x&&Ye(Nw,x):window.location.replace("#/collections"),x==="collections"?Ye(Rl,"entries"):x==="assets"?Ye(Rl,"assets"):x!=="search"&&Ye(Rl,null)};Zt(()=>{u()});var d=Wge();ai("hashchange",Ul,()=>{u()});var f=R(d);{var h=k=>{var x=Gge(),$=R(x);Ihe($,{});var I=D($,2);sge(I,{}),T(k,x)};U(f,k=>{o()&&k(h)})}var p=D(f,2);{var g=k=>{Ipe(k,{})};U(p,k=>{s()||k(g)})}var m=D(p,2),v=F(m);lr(v,()=>c(l),(k,x)=>{x(k,{})});var b=D(m,2);{var y=k=>{Lhe(k,{})};U(b,k=>{s()&&k(y)})}var w=D(b,2);cse(w,{});var E=D(w,2);lse(E,{});var C=D(E,2);The(C,{});var S=D(C,2);Che(S,{}),T(t,d);var A=le({pages:a,selectPage:u});return r(),A}const Yge={collections:"Collections",contents:"Contents",entries:"Entries",files:"Files",assets:"Assets",media:"Media",workflow:"Workflow",editorial_workflow:"Editorial Workflow",menu:"Menu",user_name:"User Name",password:"Password",sign_in:"Sign In",sign_in_with_mobile:"Sign In with Mobile",sign_in_with_mobile_instruction:"Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.",signed_in_as_x:"Signed In as {name}",working_with_local_repo:"Working with Local Repository",working_with_test_repo:"Working with Test Repository",sign_out:"Sign Out",create:"New",select:"Select",select_all:"Select All",upload:"Upload",copy:"Copy",download:"Download",duplicate:"Duplicate",delete:"Delete",save:"Save",saving:"Saving…",rename:"Rename",update:"Update",replace:"Replace",add:"Add",remove:"Remove",remove_x:"Remove {name}",clear:"Clear",expand:"Expand",expand_all:"Expand All",collapse:"Collapse",collapse_all:"Collapse All",insert:"Insert",restore:"Restore",discard:"Discard",searching:"Searching…",no_results:"No results found.",global:"Global",primary:"Primary",secondary:"Secondary",collection:"Collection",folder:"Folder",api_key:"API Key",details:"Details",back:"Back",loading:"Loading…",later:"Later",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site Configuration…",loading_site_data:"Loading Site Data…",loading_site_data_error:"There was an error while loading site data.",sign_in_with_x:"Sign In with {service}",sign_in_with_x_using_pat:"Sign In with {service} Using PAT",sign_in_using_pat_title:"Sign In Using Personal Access Token",sign_in_using_pat_description:"Enter your token below. It must have read/write access to the repository content.",personal_access_token:"Personal Access Token",authorizing:"Authorizing…",signing_in:"Signing in…",work_with_local_repo:"Work with Local Repository",work_with_local_repo_description:"Once prompted, select the root directory of the “{repo}” repository.",work_with_local_repo_description_no_repo:"Once prompted, select the root directory of your Git repository.",work_with_test_repo:"Work with Test Repository",sign_in_error:{not_project_root:"The folder you have selected is not a repository root directory. Please try again.",picker_dismissed:"A repository root directory could not be selected. Please try again.",authentication_aborted:"Authentication aborted. Please try again.",invalid_token:"The provided token is invalid. Please check and try again.",UNSUPPORTED_BACKEND:"Your Git backend is not supported by the authenticator.",UNSUPPORTED_DOMAIN:"Your domain is not allowed to use the authenticator.",MISCONFIGURED_CLIENT:"OAuth app client ID or secret is not configured.",AUTH_CODE_REQUEST_FAILED:"Failed to receive an authorization code. Please try again later.",CSRF_DETECTED:"Potential CSRF attack detected. Authentication flow aborted.",TOKEN_REQUEST_FAILED:"Failed to request an access token. Please try again later.",TOKEN_REFRESH_FAILED:"Failed to refresh the access token. Please try again later.",MALFORMED_RESPONSE:"Server responded with malformed data. Please try again later."},backend_unsupported_version:"The {name} backend requires {name} {version} or later.",repository_no_access:"You don’t have access to the “{repo}” repository.",repository_not_found:"The “{repo}” repository doesn’t exist.",repository_empty:"The “{repo}” repository has no branches.",branch_not_found:"The “{repo}” repository doesn’t have the “{branch}” branch.",unexpected_error:"Unexpected Error",entry_parse_error:"There was an error while parsing an entry file. Check the browser console for details.",entry_parse_errors:"There were errors while parsing entry files. Check the browser console for details.",mobile_promo_title:"Sveltia CMS is now available on mobile!",mobile_promo_button:"Give it a try",visit_live_site:"Visit Live Site",switch_page:"Switch Page",search_placeholder_entries:"Search for entries…",search_placeholder_assets:"Search for assets…",search_placeholder_all:"Search for entries and assets…",create_entry_or_assets:"Create Entry or Assets",publish_changes:"Publish Changes",publishing_changes:"Publishing Changes…",publishing_changes_failed:"Changes could not be published. Please try again later.",show_notifications:"Show Notifications",notifications:"Notifications",show_account_menu:"Show Account Menu",account:"Account",live_site:"Live Site",git_repository:"Git Repository",settings:"Settings",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",update_available:"The latest version of Sveltia CMS is available.",update_now:"Update Now",backend_status:{minor_incident:"{service} is experiencing a minor incident. Your workflow may be potentially affected.",major_incident:"{service} is experiencing a major incident. You may want to wait until the situation has improved."},content_library:"Content Library",asset_library:"Asset Library",asset_location:{repository:"Your Site",external:"External Locations",stock_photos:"Stock Photos"},collection_assets:"Collection Assets",entry_list:"Entry List",file_list:"File List",asset_list:"Asset List",x_collection:"“{collection}” Collection",x_asset_folder:"“{folder}” Asset Folder",viewing_collection_list:"You’re now viewing the collection list.",viewing_asset_folder_list:"You’re now viewing the asset folder list.",viewing_x_collection_many_entries:"You’re now viewing the “{collection}” collection, which has {count} entries.",viewing_x_collection_one_entry:"You’re now viewing the “{collection}” collection, which has one entry.",viewing_x_collection_no_entries:"You’re now viewing the “{collection}” collection, which has no entries yet.",viewing_x_asset_folder_many_assets:"You’re now viewing the “{folder}” asset folder, which has {count} assets.",viewing_x_asset_folder_one_asset:"You’re now viewing the “{folder}” asset folder, which has one asset.",viewing_x_asset_folder_no_assets:"You’re now viewing the “{folder}” asset folder, which has no assets yet.",singleton_selected_announcement:"Press Enter to edit the “{file}” file.",collection_not_found:"Collection not found",file_not_found:"File not found.",x_of_x_selected:"{selected} of {total} selected",switch_view:"Switch View",list_view:"List View",grid_view:"Grid View",switch_to_list_view:"Switch to List View",switch_to_grid_view:"Switch to Grid View",sort:"Sort",sorting_options:"Sorting Options",sort_keys:{none:"None",name:"Name",slug:"Slug",commit_author:"Updated by",commit_date:"Updated on"},ascending:"{label}, A to Z",ascending_date:"{label}, old to new",descending:"{label}, Z to A",descending_date:"{label}, new to old",filter:"Filter",filtering_options:"Filtering Options",group:"Group",grouping_options:"Grouping Options",type:"Type",all:"All",image:"Image",video:"Video",audio:"Audio",document:"Document",other:"Other",show_assets:"Show Assets",hide_assets:"Hide Assets",show_info:"Show Info",hide_info:"Hide Info",all_assets:"All Assets",global_assets:"Global Assets",creating_entries_disabled_by_admin:"Creating new entries in this collection is disabled by the administrator.",creating_entries_disabled_by_limit:"You cannot add new entries to this collection because it has reached its limit of {limit} entries.",back_to_collection:"Back to Collection",collection_list:"Collection List",back_to_collection_list:"Back to Collection List",asset_folder_list:"Asset Folder List",back_to_asset_folder_list:"Back to Asset Folder List",search_results:"Search Results",search_results_for_x:"Search Results for “{terms}”",viewing_entry_search_results:"You’re now viewing search results for “{terms}”. We’ve found {entries}.",viewing_asset_search_results:"You’re now viewing search results for “{terms}”. We’ve found {assets}.",many_entries:"{count} entries",one_entry:"one entry",no_entries:"no entries",many_assets:"{count} assets",one_asset:"one asset",no_assets:"no assets",no_files_found:"No files found.",no_entries_found:"No entries found.",upload_assets:"Upload New Assets",edit_options:"Edit Options",show_edit_options:"Show Edit Options",edit_asset:"Edit Asset",edit_x:"Edit {name}",wrap_long_lines:"Wrap Long Lines",rename_asset:"Rename Asset",rename_x:"Rename {name}",enter_new_name_for_asset:"Enter a new name below.",enter_new_name_for_asset_with_one_entry:"Enter a new name below. An entry using the asset will also be updated.",enter_new_name_for_asset_with_many_entries:"Enter a new name below. {count} entries using the asset will also be updated.",enter_new_name_for_asset_error:{empty:"File name cannot be empty.",character:"File name cannot contain special characters.",duplicate:"This file name is used for another asset."},replace_asset:"Replace Asset",replace_x:"Replace {name}",tap_to_browse:"Tap to browse…",drop_file_or_click_to_browse:"Drop a file here or click to browse…",drop_files_or_click_to_browse:"Drop files here or click to browse…",drop_image_file_or_click_to_browse:"Drop an image file here or click to browse…",drop_image_files_or_click_to_browse:"Drop image files here or click to browse…",drop_file_here:"Drop a file here",drop_files_here:"Drop files here",unsupported_file_type:"Unsupported File Type",dropped_file_type_mismatch:"The dropped file is not the {type} type. Please try again.",dropped_image_type_mismatch:"The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.",choose_file:"Choose File",choose_files:"Choose Files",delete_asset:"Delete Asset",delete_assets:"Delete Assets",delete_selected_asset:"Delete Selected Asset",delete_selected_assets:"Delete Selected Assets",confirm_deleting_this_asset:"Are you sure to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure to delete all the assets?",delete_entry:"Delete Entry",delete_entries:"Delete Entries",delete_selected_entry:"Delete Selected Entry",delete_selected_entries:"Delete Selected Entries",confirm_deleting_this_entry:"Are you sure to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure to delete all the entries and associated assets?",processing_file:"Processing a file. This may take a while.",processing_files:"Processing files. This may take a while.",uploading_files:"Uploading Files",confirm_replacing_file:"Are you sure to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure to save the following {count} files to the “{folder}” folder?",oversized_files:"Oversized Files",warning_oversized_file:"This file cannot be uploaded because it exceeds the maximum size of {size}. Please reduce the size or select a different file.",warning_oversized_files:"These files cannot be uploaded because they exceed the maximum size of {size}. Please reduce the sizes or select different files.",file_meta:"{type} · {size}",file_meta_converted_from_x:"(converted from {type})",no_entries_created:"This collection has no entries yet.",create_new_entry:"Create New Entry",entry:"Entry",index_file:"Index File",no_files_in_collection:"No files available in this collection.",asset_info:"Asset Info",select_asset_show_info:"Select an asset to show the info.",duplicate_entry:"Duplicate Entry",entry_duplicated:"Entry has been duplicated. It’s now a new draft.",entry_validation_error:"One field has an error. Please correct it to save the entry.",entry_validation_errors:"{count} fields have an error. Please correct them to save the entry.",entry_saved:"Entry has been saved.",entry_saved_and_published:"Entry has been saved and published.",entry_deleted:"Entry has been deleted.",entries_deleted:"{count} entries have been deleted.",asset_saved:"Asset has been saved.",asset_saved_and_published:"Asset has been saved and published.",assets_saved:"{count} assets have been saved.",assets_saved_and_published:"{count} assets have been saved and published.",asset_url_copied:"Asset URL has been copied to clipboard.",asset_urls_copied:"Asset URLs have been copied to clipboard.",asset_path_copied:"Asset file path has been copied to clipboard.",asset_paths_copied:"Asset file paths have been copied to clipboard.",asset_data_copied:"Asset file has been copied to clipboard.",asset_downloaded:"Asset file has been downloaded.",assets_downloaded:"Asset files have been downloaded.",asset_moved:"Asset has been moved.",assets_moved:"{count} assets have been moved.",asset_renamed:"Asset has been renamed.",assets_renamed:"{count} assets have been renamed.",asset_deleted:"Asset has been deleted.",assets_deleted:"{count} assets have been deleted.",content_editor:"Content Editor",restore_backup_title:"Restore Draft",restore_backup_description:"This entry has a backup from {datetime}. Do you want to restore the edited draft?",draft_backup_saved:"Draft backup has been saved.",draft_backup_restored:"Draft backup has been restored.",draft_backup_deleted:"Draft backup has been deleted.",cancel_editing:"Cancel Editing",create_entry_title:"Creating {name}",create_entry_announcement:"You’re now creating a new entry in the “{collection}” collection.",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"You’re now editing the “{entry}” entry in the “{collection}” collection.",edit_file_announcement:"You’re now editing the “{file}” file in the “{collection}” collection.",edit_singleton_announcement:"You’re now editing the “{file}” file.",save_and_publish:"Save and Publish",save_without_publishing:"Save without Publishing",show_editor_options:"Show Editor Options",editor_options:"Editor Options",show_preview:"Show Preview",sync_scrolling:"Sync Scrolling",switch_locale:"Switch Locale",locale_content_disabled_short:"(disabled)",locale_content_error_short:"(error)",edit:"Edit",preview:"Preview",edit_x_locale:"Edit {locale} Content",preview_x_locale:"Preview {locale} Content",content_preview:"Content Preview",show_content_options_x_locale:"Show {locale} Content Options",content_options_x_locale:"{locale} Content Options",x_field:"“{field}” Field",show_field_options:"Show Field Options",field_options:"Field Options",unsupported_widget_x:"Unsupported widget: {name}",enable_x_locale:"Enable {locale}",reenable_x_locale:"Reenable {locale}",disable_x_locale:"Disable {locale}",locale_x_has_been_disabled:"The {locale} content has been disabled.",locale_x_now_disabled:"The {locale} content is now disabled. It will be deleted when you save the entry.",view_in_repository:"View in Repository",view_on_x:"View on {service}",view_on_live_site:"View on Live Site",copy_from:"Copy from…",copy_from_x:"Copy from {locale}",translation_options:"Translation Options",translate:"Translate",translate_field:"Translate Field",translate_fields:"Translate Fields",translate_from:"Translate from…",translate_from_x:"Translate from {locale}",revert_changes:"Revert Changes",revert_all_changes:"Revert All Changes",edit_slug:"Edit Slug",edit_slug_warning:"Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with the Relation widget, so you’ll need to manually update such references along with other links.",edit_slug_error:{empty:"The slug cannot be empty.",duplicate:"This slug is used for another entry."},required:"Required",editor:{translation:{none:"Nothing has been translated.",started:"Translating…",error:"There was an error while translating.",complete:{one:"Translated the field from {source}.",many:"Translated {count} fields from {source}."}},copy:{none:"Nothing has been copied.",complete:{one:"Copied the field from {source}.",many:"Copied {count} fields from {source}."}}},validation:{value_missing:"This field is required.",range_underflow:{number:"Value must be greater than or equal to {min}.",select_many:"You have to select at least {min} items.",select_one:"You have to select at least {min} item.",add_many:"You have to add at least {min} items.",add_one:"You have to add at least {min} item."},range_overflow:{number:"Value must be less than or equal to {max}.",select_many:"You cannot select more than {max} items.",select_one:"You cannot select more than {max} item.",add_many:"You cannot add more than {max} items.",add_one:"You cannot add more than {max} item."},too_short:{one:"You must enter at least {min} character.",many:"You must enter at least {min} characters."},too_long:{one:"You cannot enter more than {max} character.",many:"You cannot enter more than {max} characters."},type_mismatch:{number:"Please enter a number.",email:"Please enter a valid email.",url:"Please enter a valid URL."}},saving_entry:{error:{title:"Error",description:"There was an error while saving the entry. Please try again later."}},viewing_x_asset_details:"You’re viewing the details of the “{name}” asset.",asset_editor:"Asset Editor",preview_unavailable:"Preview Unavailable.",public_url:"Public URL",public_urls:"Public URLs",file_path:"File Path",file_paths:"File Paths",file_data:"File Data",kind:"Kind",size:"Size",dimensions:"Dimensions",duration:"Duration",used_in:"Used in",created_date:"Created Date",location:"Location",map_lat_lng:"Map showing latitude {latitude}, longitude {longitude}",select_file:"Select File",select_image:"Select Image",replace_file:"Replace File",replace_image:"Replace Image",remove_file:"Remove File",remove_image:"Remove Image",remove_this_item:"Remove This Item",move_up:"Move Up",move_down:"Move Down",add_x:"Add {name}",add_item_above:"Add Item Above",add_item_below:"Add Item Below",select_list_type:"Select List Type",opacity:"Opacity",unselected_option:"(None)",assets_dialog:{title:{file:"Select File",image:"Select Image"},search_for_file:"Search for Files",search_for_image:"Search for Images",locations:"Locations",folder:{field:"Field Assets",entry:"Entry Assets",file:"File Assets",collection:"Collection Assets",global:"Global Assets"},error:{invalid_key:"Your API Key is invalid or expired. Please double check and try again.",search_fetch_failed:"There was an error while searching assets. Please try again later.",image_fetch_failed:"There was an error while downloading the selected asset. Please try again later."},available_images:"Available Images",enter_url:"Enter URL",enter_file_url:"Enter URL of the file:",enter_image_url:"Enter URL of the image:",large_file:{title:"Large File"},photo_credit:{title:"Photo Credit",description:"Use the following credit if possible:"},unsaved:"Unsaved"},character_counter:{min_max:{one:"{count} character entered. Minimum: {min}. Maximum: {max}.",many:"{count} characters entered. Minimum: {min}. Maximum: {max}."},min:{one:"{count} character entered. Minimum: {min}.",many:"{count} characters entered. Minimum: {min}."},max:{one:"{count} character entered. Maximum: {max}.",many:"{count} characters entered. Maximum: {max}."}},youtube_video_player:"YouTube video player",today:"Today",now:"Now",editor_components:{image:"Image",src:"Source",alt:"Alt Text",title:"Title",link:"Link"},key_value:{key:"Key",value:"Value",action:"Action",empty_key:"Key is required.",duplicate_key:"Key must be unique."},find_place:"Find a Place",use_your_location:"Use Your Location",geolocation_error_title:"Geolocation Error",geolocation_error_body:"There was an error while retrieving your location.",geolocation_unsupported:"Geolocation API is not supported by this browser.",boolean:{true:"Yes",false:"No"},cloud_storage:{invalid:"The service is not configured properly.",auth:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",parse_failed:"The configuration file could not be parsed.",parse_failed_invalid_object:"The configuration file is not a valid JavaScript object.",parse_failed_unsupported_type:"The configuration file is not a valid file type. Only YAML and JSON are supported.",no_collection:"Collections are not defined in the configuration file.",missing_backend:"The backend is not defined in the configuration file.",missing_backend_name:"The backend name is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",missing_repository:"The repository is not defined in the configuration file.",invalid_repository:"The configured repository is invalid. It must be in “owner/repo” format.",oauth_implicit_flow:"The configured authentication method (implicit flow) is not supported.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",missing_media_folder:"The media folder is not defined in the configuration file.",invalid_media_folder:"The configured media folder is invalid. It must be a string.",invalid_public_folder:"The configured public folder is invalid. It must be a string.",public_folder_relative_path:"The configured public folder is invalid. It must be an absolute path starting with “/”.",public_folder_absolute_url:"An absolute URL for the public folder option is not supported.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development is disabled in your browser. <a>Here’s how to enable it</a>."},status:{drafts:"Drafts",in_review:"In Review",ready:"Ready"},categories:"Categories",prefs:{changes:{api_key_saved:"API key has been saved.",api_key_removed:"API key has been removed."},error:{permission_denied:"Browser storage (Cookie) access has been denied. Please check the permission and try again."},appearance:{title:"Appearance",theme:"Theme",select_theme:"Select Theme"},theme:{auto:"Auto",dark:"Dark",light:"Light"},language:{title:"Language",ui_language:{title:"User Interface Language",select_language:"Select Language"}},contents:{title:"Contents",editor:{title:"Editor",use_draft_backup:{switch_label:"Automatically back up entry drafts"},close_on_save:{switch_label:"Close the editor after saving a draft"},close_with_escape:{switch_label:"Close the editor with the Escape key"}}},i18n:{title:"Internationalization",default_translator:{title:"Default Translation Service",select_service:"Select Service"},translator:{field_label:"{service} Key",description:"Sign up for <a {homeHref}>{service}</a> and enter <a {apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields."}},media:{title:"Media",stock_photos:{title:"{service} Free Images",field_label:"{service} API Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.",credit:"Photos provided by {service}",providers_disabled:"Stock asset providers are disabled by the administrator."}},accessibility:{title:"Accessibility",underline_links:{title:"Underline Links",description:"Show underline for links in the entry preview and user interface labels.",switch_label:"Always Underline Links"}},advanced:{title:"Advanced",beta:{title:"Beta Features",description:"Enable some beta features that may be unstable or unlocalized.",switch_label:"Join Beta Program"},developer_mode:{title:"Developer Mode",description:"Enable some developer-oriented features, including detailed console logs and native context menus.",switch_label:"Enable Developer Mode"},deploy_hook:{title:"Deploy Hook",description:"Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL has been removed."}}},keyboard_shortcuts_:{view_content_library:"View Content Library",view_asset_library:"View Asset Library",search:"Search for entries and assets",create_entry:"Create a new entry",save_entry:"Save an entry",cancel_editing:"Cancel entry editing"},file_type_labels:{avif:"AVIF image",bmp:"Bitmap image",gif:"GIF image",ico:"Icon",jpeg:"JPEG image",jpg:"JPEG image",png:"PNG image",svg:"SVG image",tif:"TIFF image",tiff:"TIFF image",webp:"WebP image",avi:"AVI video",m4v:"MP4 video",mov:"QuickTime video",mp4:"MP4 video",mpeg:"MPEG video",mpg:"MPEG video",ogg:"Ogg video",ogv:"Ogg video",ts:"MPEG video",webm:"WebM video","3gp":"3GPP video","3g2":"3GPP2 video",aac:"AAC audio",mid:"MIDI",midi:"MIDI",m4a:"MP4 audio",mp3:"MP3 audio",oga:"Ogg audio",opus:"OPUS audio",wav:"WAV audio",weba:"WebM audio",csv:"CSV spreadsheet",doc:"Word document",docx:"Word document",odp:"OpenDocument presentation",ods:"OpenDocument spreadsheet",odt:"OpenDocument text",pdf:"PDF document",ppt:"PowerPoint presentation",pptx:"PowerPoint presentation",rtf:"Rich text document",xls:"Excel spreadsheet",xlsx:"Excel spreadsheet",html:"HTML text",js:"JavaScript",json:"JSON text",md:"Markdown text",toml:"TOML text",yaml:"YAML text",yml:"YAML text"},file_size_units:{b:"{size} bytes",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},Zge=Object.freeze(Object.defineProperty({__proto__:null,strings:Yge},Symbol.toStringTag,{value:"Module"})),Jge={collections:"コレクション",contents:"コンテンツ",entries:"エントリー",files:"ファイル",assets:"アセット",media:"メディア",workflow:"ワークフロー",editorial_workflow:"編集ワークフロー",menu:"メニュー",user_name:"ユーザー名",password:"パスワード",sign_in:"ログイン",sign_in_with_mobile:"モバイルでログイン",sign_in_with_mobile_instruction:"以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。",signed_in_as_x:"{name} としてログイン中",working_with_local_repo:"ローカルレポジトリで作業中",working_with_test_repo:"テストレポジトリで作業中",sign_out:"ログアウト",create:"新規作成",select:"選択",select_all:"すべて選択",upload:"アップロード",copy:"コピー",download:"ダウンロード",duplicate:"複製",delete:"削除",save:"保存",saving:"保存中…",rename:"名前を変更",update:"更新",replace:"差し替え",add:"追加",remove:"削除",remove_x:"{name} を削除",clear:"クリア",expand:"広げる",expand_all:"すべて広げる",collapse:"折り畳む",collapse_all:"すべて折り畳む",insert:"挿入",restore:"復元",discard:"破棄",searching:"検索中…",no_results:"結果が見つかりませんでした。",global:"グローバル",primary:"プライマリー",secondary:"セカンダリー",collection:"コレクション",folder:"フォルダー",api_key:"API キー",details:"詳細",back:"戻る",loading:"読み込み中…",later:"後で",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",sign_in_with_x_using_pat:"{service} で PAT を使用してログイン",sign_in_using_pat_title:"個人用アクセストークンでログイン",sign_in_using_pat_description:"以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。",personal_access_token:"個人用アクセストークン",authorizing:"認証中…",signing_in:"ログイン中…",work_with_local_repo:"ローカルレポジトリで作業",work_with_local_repo_description:"ダイアログが表示されたら、「{repo}」レポジトリのルートディレクトリを選択してください。",work_with_local_repo_description_no_repo:"ダイアログが表示されたら、Git レポジトリのルートディレクトリを選択してください。",work_with_test_repo:"テストレポジトリで作業",sign_in_error:{not_project_root:"選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。",picker_dismissed:"レポジトリのルートディレクトリを選択できませんでした。再度お試しください。",authentication_aborted:"認証が中断されました。再度お試しください。",invalid_token:"入力されたトークンが無効です。確認して再度お試しください。",UNSUPPORTED_BACKEND:"この認証アプリはお使いの Git バックエンドに対応していません。",UNSUPPORTED_DOMAIN:"この認証アプリではお使いのドメインの使用は許可されていません。",MISCONFIGURED_CLIENT:"OAuth アプリのクライアント ID またはシークレットが設定されていません。",AUTH_CODE_REQUEST_FAILED:"認証コードを取得できませんでした。後で再度お試しください。",CSRF_DETECTED:"CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。",TOKEN_REQUEST_FAILED:"アクセストークンを要求できませんでした。後で再度お試しください。",TOKEN_REFRESH_FAILED:"アクセストークンの更新に失敗しました。後で再度お試しください。",MALFORMED_RESPONSE:"サーバーから不正なデータが返されました。後で再度お試しください。"},backend_unsupported_version:"{name} バックエンドには {name} {version} 以降のバージョンが必要です。",repository_no_access:"あなたには「{repo}」レポジトリへのアクセス権がありません。",repository_not_found:"「{repo}」レポジトリは存在しません。",repository_empty:"「{repo}」レポジトリにはブランチがありません。",branch_not_found:"「{repo}」レポジトリに「{branch}」ブランチは存在しません。",unexpected_error:"予期せぬエラー",entry_parse_error:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",entry_parse_errors:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",visit_live_site:"管理対象サイトを開く",switch_page:"ページを切り替え",search_placeholder_entries:"エントリーを検索…",search_placeholder_assets:"アセットを検索…",search_placeholder_all:"エントリーとアセットを検索…",create_entry_or_assets:"エントリーまたはアセットを作成",publish_changes:"変更を公開",publishing_changes:"変更を公開しています…",publishing_changes_failed:"変更を公開できませんでした。後で再度お試しください。",show_notifications:"通知を表示",notifications:"通知",show_account_menu:"アカウントメニューを表示",account:"アカウント",live_site:"管理対象サイト",git_repository:"Git レポジトリ",settings:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",mobile_promo_title:"Sveltia CMS がモバイルに対応しました!",mobile_promo_button:"試してみる",update_available:"Sveltia CMS の最新版が利用可能です。",update_now:"今すぐ更新",backend_status:{minor_incident:"{service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。",major_incident:"{service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。"},content_library:"コンテンツライブラリ",asset_library:"アセットライブラリ",asset_location:{repository:"あなたのサイト",external:"外部の場所",stock_photos:"ストックフォト"},collection_assets:"コレクションアセット",entry_list:"エントリーリスト",file_list:"ファイルリスト",asset_list:"アセットリスト",x_collection:"「{collection}」コレクション",x_asset_folder:"「{folder}」アセットフォルダー",viewing_collection_list:"コレクションリストを表示しています。",viewing_asset_folder_list:"アセットフォルダーリストを表示しています。",viewing_x_collection_many_entries:"「{collection}」コレクションを表示しています。ここには {count} 個のエントリーがあります。",viewing_x_collection_one_entry:"「{collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。",viewing_x_collection_no_entries:"「{collection}」コレクションを表示しています。ここにはまだエントリーがありません。",viewing_x_asset_folder_many_assets:"「{folder}」アセットフォルダーを表示しています。ここには {count} 個のアセットがあります。",viewing_x_asset_folder_one_asset:"「{folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。",viewing_x_asset_folder_no_assets:"「{folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。",singleton_selected_announcement:"「{file}」ファイルを編集するには Enter キーを押してください。",collection_not_found:"コレクションが見つかりませんでした",file_not_found:"ファイルが見つかりませんでした",x_of_x_selected:"{total} 個のうち {selected} 個を選択中",switch_view:"ビューを切り替え",list_view:"リストビュー",grid_view:"グリッドビュー",switch_to_list_view:"リストビューに切り替え",switch_to_grid_view:"グリッドビューに切り替え",sort:"並び替え",sorting_options:"並べ替えオプション",sort_keys:{none:"なし",name:"名前",slug:"スラッグ",commit_author:"更新者",commit_date:"更新日時"},ascending:"{label} (A–Z)",ascending_date:"{label} (古い順)",descending:"{label} (Z–A)",descending_date:"{label} (新しい順)",filter:"絞り込み",filtering_options:"絞り込みオプション",group:"グループ化",grouping_options:"グループ化オプション",type:"種類",all:"すべて",image:"画像",video:"動画",audio:"音声",document:"書類",other:"その他",show_assets:"アセットを表示",hide_assets:"アセットを隠す",show_info:"情報を表示",hide_info:"情報を隠す",all_assets:"すべてのアセット",global_assets:"グローバルアセット",creating_entries_disabled_by_admin:"このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。",creating_entries_disabled_by_limit:"このコレクションは最大の {limit} エントリーに達したため、新しいエントリーを作成することはできません。",back_to_collection:"コレクションへ戻る",collection_list:"コレクションリスト",back_to_collection_list:"コレクションリストへ戻る",asset_folder_list:"アセットフォルダーリスト",back_to_asset_folder_list:"アセットフォルダーリストへ戻る",search_results:"検索結果",search_results_for_x:"「{terms}」の検索結果",viewing_entry_search_results:"「{terms}」の検索結果を表示しています。{entries} が見つかりました。",viewing_asset_search_results:"「{terms}」の検索結果を表示しています。{assets} が見つかりました。",many_entries:"{count} 個のエントリー",one_entry:"1 個のエントリー",no_entries:"0 個のエントリー",many_assets:"{count} 個のアセット",one_asset:"1 個のアセット",no_assets:"0 個のアセット",no_files_found:"ファイルは見つかりませんでした。",no_entries_found:"エントリーは見つかりませんでした。",upload_assets:"新しいアセットをアップロード",edit_options:"編集オプション",show_edit_options:"編集オプションを表示",edit_asset:"アセットを編集",edit_x:"{name} を編集",wrap_long_lines:"長い行を折り返す",rename_asset:"アセットの名前を変更",rename_x:"{name} の名前を変更",enter_new_name_for_asset:"新しい名前を以下に入力してください。",enter_new_name_for_asset_with_one_entry:"新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。",enter_new_name_for_asset_with_many_entries:"新しい名前を以下に入力してください。このアセットを使用している {count} 個のエントリーも更新されます。",enter_new_name_for_asset_error:{empty:"ファイル名を空白にすることはできません。",character:"ファイル名に特別な文字を含めることはできません。",duplicate:"このファイル名は他のアセットに使われています。"},replace_asset:"アセットを差し替え",replace_x:"{name} を差し替え",tap_to_browse:"タップして参照…",drop_file_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_files_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_image_file_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_image_files_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_file_here:"ここにファイルをドロップ",drop_files_here:"ここにファイルをドロップ",unsupported_file_type:"非対応ファイル形式",dropped_file_type_mismatch:"ドロップされたファイルは {type} 形式ではありません。再度お試しください。",dropped_image_type_mismatch:"ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。",choose_file:"ファイルを選択",choose_files:"ファイルを選択",delete_asset:"アセットを削除",delete_assets:"アセットを削除",delete_selected_asset:"選択されたアセットを削除",delete_selected_assets:"選択されたアセットを削除",confirm_deleting_this_asset:"このアセットを削除してもよろしいですか?",confirm_deleting_selected_asset:"選択されたファイルを削除してもよろしいですか?",confirm_deleting_selected_assets:"選択された {count} 個のファイルを削除してもよろしいですか?",confirm_deleting_all_assets:"すべてのアセットを削除してもよろしいですか?",delete_entry:"エントリーを削除",delete_entries:"エントリーを削除",delete_selected_entry:"選択されたエントリーを削除",delete_selected_entries:"選択されたエントリーを削除",confirm_deleting_this_entry:"このエントリーを削除してもよろしいですか?",confirm_deleting_this_entry_with_assets:"このエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entry:"選択されたエントリーを削除してもよろしいですか?",confirm_deleting_selected_entry_with_assets:"選択されたエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entries:"選択された {count} 個のエントリーを削除してもよろしいですか?",confirm_deleting_selected_entries_with_assets:"選択された {count} 個のエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_all_entries:"すべてのエントリーを削除してもよろしいですか?",confirm_deleting_all_entries_with_assets:"すべてのエントリーと関連アセットを削除してもよろしいですか?",processing_file:"ファイルを処理しています。これには時間がかかる場合があります。",processing_files:"ファイルを処理しています。これには時間がかかる場合があります。",uploading_files:"アップロード対象ファイル",confirm_replacing_file:"「{name}」を以下のファイルと差し替えてもよろしいですか?",confirm_uploading_file:"以下のファイルを「{folder}」フォルダーに保存してもよろしいですか?",confirm_uploading_files:"以下の {count} 個のファイルを「{folder}」フォルダーに保存してもよろしいですか?",oversized_files:"サイズ超過ファイル",warning_oversized_file:"このファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。",warning_oversized_files:"これらのファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください",file_meta:"{type} · {size}",file_meta_converted_from_x:"({type} から変換)",no_entries_created:"このコレクションにはまだエントリーがありません。",create_new_entry:"新しいエントリーを作成",entry:"エントリー",index_file:"インデックスファイル",no_files_in_collection:"このコレクションにはファイルがありません。",asset_info:"アセット情報",select_asset_show_info:"アセットを選択すると情報が表示されます。",duplicate_entry:"エントリーを複製",entry_duplicated:"エントリーが複製され、新しい下書きとなりました。",entry_validation_error:"ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_validation_errors:"{count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_saved:"エントリーが保存されました。",entry_saved_and_published:"エントリーが保存、公開されました。",entry_deleted:"エントリーが削除されました。",entries_deleted:"{count} 個のエントリーが削除されました。",asset_saved:"アセットが保存されました。",asset_saved_and_published:"アセットが保存、公開されました。",assets_saved:"{count} 個のアセットが保存されました。",assets_saved_and_published:"{count} 個のアセットが保存、公開されました。",asset_url_copied:"アセット URL がクリップボードにコピーされました。",asset_urls_copied:"アセット URL がクリップボードにコピーされました。",asset_path_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_paths_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_data_copied:"アセットファイルがクリップボードにコピーされました。",asset_downloaded:"アセットファイルがダウンロードされました。",assets_downloaded:"アセットファイルがダウンロードされました。",asset_moved:"アセットが移動されました。",assets_moved:"{count} 個のアセットが移動されました。",asset_renamed:"アセットの名前が変更されました。",assets_renamed:"{count} 個のアセットの名前が変更されました。",asset_deleted:"アセットが削除されました。",assets_deleted:"{count} 個のアセットが削除されました。",content_editor:"コンテンツエディター",restore_backup_title:"下書きを復元",restore_backup_description:"このエントリーには {datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?",draft_backup_saved:"下書きのバックアップが保存されました。",draft_backup_restored:"下書きのバックアップが復元されました。",draft_backup_deleted:"下書きのバックアップが削除されました。",cancel_editing:"編集をキャンセル",create_entry_title:"{name} を作成",create_entry_announcement:"「{collection}」コレクションの新しいエントリーを作成しています。",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"「{collection}」コレクションの「{entry}」エントリーを編集しています。",edit_file_announcement:"「{collection}」コレクションの「{file}」ファイルを編集しています。",edit_singleton_announcement:"「{file}」ファイルを編集しています。",save_and_publish:"保存して公開",save_without_publishing:"公開せずに保存",show_editor_options:"エディターオプションを表示",editor_options:"エディターオプション",show_preview:"プレビューを表示",sync_scrolling:"スクロールを同期",switch_locale:"ロケールを切り替え",locale_content_disabled_short:"(無効)",locale_content_error_short:"(エラー)",edit:"編集",preview:"プレビュー",edit_x_locale:"{locale} コンテンツを編集",preview_x_locale:"{locale} コンテンツをプレビュー",content_preview:"コンテンツプレビュー",show_content_options_x_locale:"{locale} コンテンツのオプションを表示",content_options_x_locale:"{locale} コンテンツのオプション",x_field:"「{field}」フィールド",show_field_options:"フィールドオプションを表示",field_options:"フィールドオプション",unsupported_widget_x:"非対応ウィジェット: {name}",enable_x_locale:"{locale} を有効化",reenable_x_locale:"{locale} を再度有効化",disable_x_locale:"{locale} を無効化",locale_x_has_been_disabled:"{locale} コンテンツは無効化されています。",locale_x_now_disabled:"{locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。",view_in_repository:"レポジトリ内で見る",view_on_x:"{service} で見る",view_on_live_site:"管理対象サイトで見る",copy_from:"他の言語からコピー…",copy_from_x:"{locale} からコピー",translation_options:"翻訳オプション",translate:"翻訳",translate_field:"フィールドを翻訳",translate_fields:"フィールドを翻訳",translate_from:"他の言語から翻訳…",translate_from_x:"{locale} から翻訳",revert_changes:"変更を取り消す",revert_all_changes:"すべての変更を取り消す",edit_slug:"スラッグを編集",edit_slug_warning:"スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation ウィジェットで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。",edit_slug_error:{empty:"スラッグは空白にはできません。",duplicate:"このスラッグは他のエントリーに使われています。"},required:"必須",editor:{translation:{none:"翻訳されたフィールドはありません。",started:"翻訳中…",error:"翻訳中に問題が発生しました。",complete:{one:"{source} からフィールドを翻訳しました。",many:"{source} から {count} 個のフィールドを翻訳しました。"}},copy:{none:"コピーされたフィールドはありません。",complete:{one:"{source} からフィールドをコピーしました。",many:"{source} から {count} 個のフィールドをコピーしました。"}}},validation:{value_missing:"この項目は必須です。",range_underflow:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{select_many:"選択できるのは最大で {max} 項目です。",select_one:"選択できるのは最大で {max} 項目です。",add_many:"追加できるのは最大で {max} 項目です。",add_one:"追加できるのは最大で {max} 項目です。"},too_short:{one:"少なくとも {min} 文字は入力してください。",many:"少なくとも {min} 文字は入力してください。"},too_long:{one:"{max} 文字を超える入力はできません。",many:"{max} 文字を超える入力はできません。"},type_mismatch:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},saving_entry:{error:{title:"エラー",description:"エントリーを保存中に問題が発生しました。後で再度お試しください。"}},find_place:"場所を検索",use_your_location:"現在地を使用",geolocation_error_title:"位置情報エラー",geolocation_error_body:"あなたの現在地を取得できませんでした。",geolocation_unsupported:"お使いのブラウザーは位置情報 API をサポートしていません。",viewing_x_asset_details:"「{name}」アセットの詳細を表示しています。",asset_editor:"アセットエディター",preview_unavailable:"プレビューは表示できません",public_url:"公開 URL",public_urls:"公開 URL",file_path:"ファイルパス",file_paths:"ファイルパス",file_data:"ファイルデータ",kind:"種類",size:"サイズ",dimensions:"大きさ",duration:"再生時間",used_in:"使われているエントリー",created_date:"作成日時",location:"場所",map_lat_lng:"緯度 {latitude}、経度 {longitude} の地図",select_file:"ファイルを選択",select_image:"画像を選択",replace_file:"ファイルを差し替え",replace_image:"画像を差し替え",remove_file:"ファイルを削除",remove_image:"画像を削除",remove_this_item:"このアイテムを削除",move_up:"上へ移動",move_down:"下へ移動",add_x:"{name} を追加",add_item_above:"上にアイテムを追加",add_item_below:"下にアイテムを追加",select_list_type:"リストタイプを選択",opacity:"透明度",unselected_option:"(なし)",assets_dialog:{title:{file:"ファイルを選択",image:"画像を選択"},search_for_file:"ファイルを検索",search_for_image:"画像を検索",locations:"場所",folder:{field:"フィールドアセット",entry:"エントリーアセット",file:"ファイルアセット",collection:"コレクションアセット",global:"グローバルアセット"},error:{invalid_key:"あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。",search_fetch_failed:"アセットを検索中に問題が発生しました。後で再度お試しください。",image_fetch_failed:"選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。"},available_images:"利用可能な画像",enter_url:"URL を入力",enter_file_url:"ファイルの URL を入力:",enter_image_url:"画像の URL を入力:",large_file:{title:"大きなファイル"},photo_credit:{title:"写真クレジット",description:"可能であれば以下のクレジットを使ってください:"},unsaved:"未保存"},character_counter:{min_max:{one:"{count} 文字入力されています。最小: {min}。最大 {max}。",many:"{count} 文字入力されています。最小: {min}。最大 {max}。"},min:{one:"{count} 文字入力されています。最小: {min}。",many:"{count} 文字入力されています。最小: {min}。"},max:{one:"{count} 文字入力されています。最大: {max}。",many:"{count} 文字入力されています。最大: {max}。"}},youtube_video_player:"YouTube 動画プレーヤー",today:"今日",now:"現在時刻",editor_components:{image:"画像",src:"ソース",alt:"代替テキスト",title:"タイトル",link:"リンク"},key_value:{key:"キー",value:"値",action:"アクション",empty_key:"キーは必須です。",duplicate_key:"キーが重複しています。"},boolean:{true:"はい",false:"いいえ"},cloud_storage:{invalid:"このサービスは正しく設定されていません。",auth:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",parse_failed_unsupported_type:"設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML と JSON のみです。",no_collection:"設定ファイル内でコレクションが定義されていません。",missing_backend:"設定ファイル内でバックエンドが定義されていません。",missing_backend_name:"設定ファイル内でバックエンド名が定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",missing_repository:"設定ファイル内でレポジトリが定義されていません。",invalid_repository:"設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",missing_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",invalid_media_folder:"設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。",invalid_public_folder:"設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。",public_folder_relative_path:"設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。",public_folder_absolute_url:"パブリックフォルダーオプションの絶対 URL は非対応です。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"API キーが削除されました。"},error:{permission_denied:"ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。"},appearance:{title:"アピアランス",theme:"テーマ",select_theme:"テーマを選択"},theme:{auto:"自動",dark:"ダーク",light:"ライト"},language:{title:"言語",ui_language:{title:"ユーザーインターフェース言語",select_language:"言語を選択"}},contents:{title:"コンテンツ",editor:{title:"エディター",use_draft_backup:{switch_label:"エントリーの下書きを自動的にバックアップする"},close_on_save:{switch_label:"下書き保存後にエディターを閉じる"},close_with_escape:{switch_label:"Escape キーでエディターを閉じる"}}},i18n:{title:"国際化",default_translator:{title:"デフォルト翻訳サービス",select_service:"サービスを選択"},translator:{field_label:"{service} キー",description:"<a {homeHref}>{service}</a> にユーザー登録して、<a {apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}",providers_disabled:"ストックアセットプロバイダーは管理者によって無効化されています。"}},accessibility:{title:"アクセシビリティ",underline_links:{title:"リンクに下線を付ける",description:"エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。",switch_label:"常に下線を付ける"}},advanced:{title:"詳細",beta:{title:"ベータ機能",description:"不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。",switch_label:"ベータプログラムに参加する"},developer_mode:{title:"開発者モード",description:"詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。",switch_label:"開発者モードを有効にする"},deploy_hook:{title:"デプロイフック",description:"「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"}}},keyboard_shortcuts_:{view_content_library:"コンテンツライブラリを表示",view_asset_library:"アセットライブラリを表示",search:"エントリーとアセットを検索",create_entry:"新しいエントリーを作成",save_entry:"エントリーを保存",cancel_editing:"エントリーの編集をキャンセル"},file_type_labels:{avif:"AVIF 画像",bmp:"Bitmap 画像",gif:"GIF 画像",ico:"アイコン",jpeg:"JPEG 画像",jpg:"JPEG 画像",png:"PNG 画像",svg:"SVG 画像",tif:"TIFF 画像",tiff:"TIFF 画像",webp:"WebP 画像",avi:"AVI 動画",m4v:"MP4 動画",mov:"QuickTime 動画",mp4:"MP4 動画",mpeg:"MPEG 動画",mpg:"MPEG 動画",ogg:"Ogg 動画",ogv:"Ogg 動画",ts:"MPEG 動画",webm:"WebM 動画","3gp":"3GPP 動画","3g2":"3GPP2 動画",aac:"AAC 音声",mid:"MIDI",midi:"MIDI",m4a:"MP4 音声",mp3:"MP3 音声",oga:"Ogg 音声",opus:"OPUS 音声",wav:"WAV 音声",weba:"WebM 音声",csv:"CSV スプレッドシート",doc:"Word ドキュメント",docx:"Word ドキュメント",odp:"OpenDocument プレゼンテーション",ods:"OpenDocument スプレッドシート",odt:"OpenDocument テキスト",pdf:"PDF ドキュメント",ppt:"PowerPoint プレゼンテーション",pptx:"PowerPoint プレゼンテーション",rtf:"リッチテキストドキュメント",xls:"Excel スプレッドシート",xlsx:"Excel スプレッドシート",html:"HTML テキスト",js:"JavaScript",json:"JSON テキスト",md:"Markdown テキスト",toml:"TOML テキスト",yaml:"YAML テキスト",yml:"YAML テキスト"},file_size_units:{b:"{size} バイト",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},Xge=Object.freeze(Object.defineProperty({__proto__:null,strings:Jge},Symbol.toStringTag,{value:"Module"})),Qge=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":Zge,"/src/lib/locales/ja.js":Xge})).forEach(([e,{strings:n}])=>{const r=yn(e).filename;l0(r,n)}),OR({fallbackLocale:"en",initialLocale:oe(gt).locale||(ez()??"").split("-")[0]||"en"})};var eme=M('<link rel="icon"/>'),tme=M('<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>',1),nme=M('<div role="none" class="outer svelte-1c45245"><!> <!> <div role="none" class="main svelte-1c45245"><!> <!></div></div>'),rme=M('<!> <div role="status" class="svelte-1c45245"> </div>',1);const ime={hash:"svelte-1c45245",code:`@view-transition {navigation:auto;
689
689
  }
690
690
  @keyframes svelte-1c45245-slide-out-to-left {
691
691
  from {