PageSourceSearch

https://app.tyce.ai/assets/aiEditUtils-gzTzdh2W.js

js tyce.ai collected 2026-09-28 12:44:01 UTC 86,900 bytes, 30 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b2c06ad9-98e9-5449-9640-28e6bf17565d")}catch(e){}}();
3var bi=Object.defineProperty;var wi=(n,t,i)=>t in n?bi(n,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[t]=i;var g=(n,t,i)=>wi(n,typeof t!="symbol"?t+"":t,i);import{c as jt}from"./createReactComponent-CPrb-Vt-.js";import{j as ct}from"./jsx-runtime-DNCVYYl4.js";import{c as ki}from"./utils-DYsnKI6Z.js";import{r as Re}from"./chunk-QMGIS6GS-CY8nrIh9.js";import{u as yi}from"./react-query.gen-D2IhZJ8k.js";import{a as Ei}from"./ky-kHzIpPGP.js";import{u as Ze}from"./index-A5T1v03g.js";import{S as Ti,x as Ai}from"./use-backend-user-D0JxJM1w.js";import{r as _i}from"./index-RaTm3iFK.js";import{j as Qe,k as Je,l as oe,o as Ii,q as Si}from"./index-CSrVBwj9.js";import{t as je}from"./index-DyIiZxoe.js";/**
4 * @license @tabler/icons-react v3.34.0 - MIT
5 *
6 * This source code is licensed under the MIT license.
7 * See the LICENSE file in the root directory of this source tree.
8 */var Aa=jt("outline","arrow-forward","IconArrowForward",[["path",{d:"M15 11l4 4l-4 4m4 -4h-11a4 4 0 0 1 0 -8h1",key:"svg-0"}]]);/**
9 * @license @tabler/icons-react v3.34.0 - MIT
10 *
11 * This source code is licensed under the MIT license.
12 * See the LICENSE file in the root directory of this source tree.
13 */var _a=jt("outline","brand-google-drive","IconBrandGoogleDrive",[["path",{d:"M12 10l-6 10l-3 -5l6 -10z",key:"svg-0"}],["path",{d:"M9 15h12l-3 5h-12",key:"svg-1"}],["path",{d:"M15 15l-6 -10h6l6 10z",key:"svg-2"}]]);/**
14 * @license @tabler/icons-react v3.34.0 - MIT
15 *
16 * This source code is licensed under the MIT license.
17 * See the LICENSE file in the root directory of this source tree.
18 */var Oi=jt("outline","cloud-upload","IconCloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);/**
19 * @license @tabler/icons-react v3.34.0 - MIT
20 *
21 * This source code is licensed under the MIT license.
22 * See the LICENSE file in the root directory of this source tree.
23 */var Ia=jt("outline","link","IconLink",[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]]);function Sa({className:n,label:t}){return ct.jsxs("div",{className:ki("absolute inset-0 z-20 flex flex-col gap-2 items-center justify-center rounded-lg","border border-dashed border-[#0061FD] bg-[#EAF2FF]/80 backdrop-blur-xs text-[#0061FD] pointer-events-none",n),"data-sentry-component":"FileDropOverlay","data-sentry-source-file":"file-drop-overlay.tsx",children:[ct.jsx(Oi,{"data-sentry-element":"IconCloudUpload","data-sentry-source-file":"file-drop-overlay.tsx"}),ct.jsx("p",{className:"text-sm",children:t??"Drop your files here"})]})}function Oa(){const n=Ze(),{data:t}=yi({queryKey:["google","token"],queryFn:()=>Ei.get("google/token").json(),enabled:!!n});return t==null?void 0:t.access_token}(()=>{var n="https://apis.google.com/js/api.js",t="https://accounts.google.com/gsi/client";async function i(u="client:picker"){return window.gapi||await s(n),await new Promise(r=>{window.gapi.load(u,r)}),window.google}async function a(u){var r,v;return(v=(r=window.google)==null?void 0:r.accounts)!=null&&v.oauth2||await s(t),new Promise((E,T)=>{window.google.accounts.oauth2.initTokenClient({...u,callback:E,error_callback:T}).requestAccessToken()})}async function s(u){return new Promise((r,v)=>{document.querySelector(`script[src="${u}"]`)?r():document.head.appendChild(Object.assign(document.createElement("script"),{src:u,onload:r,onerror:v}))})}function c(u,r){let v=u.getAttribute(r);return v?Number(v):null}var p=(u=>(u[u.FALSE=0]="FALSE",u[u.TRUE=1]="TRUE",u[u.DEFAULT=2]="DEFAULT",u))(p||{});function o(u,r){return u.hasAttribute(r)}function h(u,r){var T;let v=(T=u.getAttribute(r))==null?void 0:T.toUpperCase();if(!v)return 2;let E=p[v];if(E!==void 0)return E;throw new Error(`Invalid value, "${v}", for attribute ${r}. Must be one of ${Object.keys(p).filter(Number.isNaN).join(", ")}`)}function f(u,r,v,E){let T=h(r,u);return T===2?E:v.call(E,T===1)}var b=class extends HTMLElement{constructor(){super(...arguments);g(this,"picker");g(this,"observer");g(this,"google");g(this,"loading")}static get observedAttributes(){return["app-id","client-id","developer-key","hide-title-bar","locale","max-items","mine-only","multiselect","nav-hidden","oauth-token","origin","relay-url","scope","title"]}get visible(){var r;return!!((r=this.picker)!=null&&r.isVisible())}set visible(r){var v;(v=this.picker)==null||v.setVisible(r)}get tokenClientConfig(){let r=this.getAttribute("client-id"),v=this.getAttribute("scope")??"https://www.googleapis.com/auth/drive.file";if(!r||!v)throw new Error("client-id and scope are required attributes");return{client_id:r,hd:this.getAttribute("hd")??void 0,include_granted_scopes:!!this.getAttribute("include-granted-scope"),login_hint:this.getAttribute("login-hint")??void 0,prompt:this.getAttribute("prompt")??"",scope:v}}attributeChangedCallback(){this.build()}async build(){var Et;if((Et=this.picker)==null||Et.dispose(),await this.loading,!this.google)return;let r=new this.google.picker.PickerBuilder().setCallback(rt=>{this.callbackToDispatchEvent(rt)}),v=this.getAttribute("app-id");v!==null&&(r=r.setAppId(v));let E=this.getAttribute("developer-key");E!==null&&(r=r.setDeveloperKey(E));let T=this.getAttribute("locale");T!==null&&(r=r.setLocale(T));let k=c(this,"max-items");k!==null&&(r=r.setMaxItems(k));let $=this.getAttribute("origin");$!==null&&(r=r.setOrigin($));let B=this.getAttribute("relay-url");B!==null&&(r=r.setRelayUrl(B));let Q=this.getAttribute("title");Q!==null&&(r=r.setTitle(Q)),f("hide-title-bar",this,r.hideTitleBar,r);let yt=this.getAttribute("oauth-token")??await this.requestAccessToken();if(yt){r=r.setOAuthToken(yt),o(this,"multiselect")&&(r=r.enableFeature
23(this.google.picker.Feature.MULTISELECT_ENABLED)),o(this,"mine-only")&&(r=r.enableFeature(this.google.picker.Feature.MINE_ONLY)),o(this,"nav-hidden")&&(r=r.enableFeature(this.google.picker.Feature.NAV_HIDDEN));for(let rt of this.views)r=r.addView(rt);this.picker=r.build(),this.picker.setVisible(!0)}}get views(){let r=W(this);return r.length?r:["all"]}async connectedCallback(){var r;this.loading=i().then(v=>{this.google=v,this.build()}),this.observer=new MutationObserver(v=>{v.filter(E=>E.type==="childList"||E.type==="attributes"&&E.target!==this).length&&this.build()}),(r=this.observer)==null||r.observe(this,{childList:!0,subtree:!0,attributes:!0})}callbackToDispatchEvent(r){let v;switch(r.action){case google.picker.Action.CANCEL:v=["picker:canceled","picker-canceled"];break;case google.picker.Action.PICKED:v=["picker:picked","picker-picked"];break;case google.picker.Action.ERROR:v=["picker:error","picker-error"];break;default:return}for(let E of v)this.dispatchEvent(new CustomEvent(E,{detail:r}))}async requestAccessToken(){return a(this.tokenClientConfig).then(r=>{let{access_token:v}=r;if(!v){this.dispatchEvent(new CustomEvent("picker:oauth:error",{detail:r})),this.dispatchEvent(new CustomEvent("picker-oauth-error",{detail:r}));return}return this.dispatchEvent(new CustomEvent("picker:authenticated",{detail:{token:v}})),this.dispatchEvent(new CustomEvent("picker-oauth-response",{detail:r})),this.dispatchEvent(new CustomEvent("picker:oauth:response",{detail:r})),this.dispatchEvent(new CustomEvent("picker-oauth-response",{detail:r})),v}).catch(r=>{this.dispatchEvent(new CustomEvent("picker:oauth:error",{detail:r})),this.dispatchEvent(new CustomEvent("picker-oauth-error",{detail:r}))})}disconnectedCallback(){var r;(r=this.picker)==null||r.dispose()}};function S(u){return"view"in u&&u.view instanceof window.google.picker.View}function _(u){return u.filter(r=>S(r)).map(r=>r.view)}function W(u,r="*"){return _(Array.from(u.querySelectorAll(r)))}var U=class extends HTMLElement{static get observedAttributes(){return["enable-drives","include-folders","mime-types","mode","owned-by-me","parent","query","select-folder-enabled","starred","view-id"]}get view(){let u=new window.google.picker.DocsView(this.viewId);f("enable-drives",this,u.setEnableDrives,u),f("include-folders",this,u.setIncludeFolders,u),f("owned-by-me",this,u.setOwnedByMe,u),f("select-folder-enabled",this,u.setSelectFolderEnabled,u),f("starred",this,u.setStarred,u);let r=this.getAttribute("mime-types");r!==null&&u.setMimeTypes(r);let v=this.getAttribute("mode");v&&u.setMode(google.picker.DocsViewMode[v]);let E=this.getAttribute("parent");E!==null&&u.setParent(E);let T=this.getAttribute("query");return T!==null&&u.setQuery(T),u}get viewId(){let u=this.getAttribute("view-id");return u?window.google.picker.ViewId[u]:void 0}};customElements.define("drive-picker",b),customElements.define("drive-picker-docs-view",U)})();const ti
vendor: 23,455 bytes, line 23
23={"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.
23dece.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(ti);const ei={"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/d
23ash+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":["w
23off"],"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(ei);var H=function(n,t,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!a:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(n):a?a.value:t.get(n)},lt,wt,tt;class Mi{constructor(...t){lt.set(this,new Map),wt.set(this,new Map),tt.set(this,new Map);for(const i of t)this.define(i)}define(t,i=!1){for(let[a,s]of Object.entries(t)){a=a.toLowerCase(),s=s.map(o=>o.toLowerCase()),H(this,tt,"f").has(a)||H(this,tt,"f").set(a,new Set);const c=H(this,tt,"f").get(a);let p=!0;for(let o of s){const h=o.startsWith("*");if(o=h?o.slice(1):o,c==null||c.add(o),p&&H(this,wt,"f").set(a,o),p=!1,h)continue;const f=H(this,lt,"f").get(o);if(f&&f!=a&&!i)throw new Error(`"${a} -> ${o}" conflicts with "${f} -> ${o}". Pass \`force=true\` to override this definition.`);H(this,lt,"f").set(o,a)}}return this}getType(t){if(typeof t!="string")return null;const i=t.replace(/^.*[/\\]/s,"").toLowerCase(),a=i.replace(/^.*\./s,"").toLowerCase(),s=i.length<t.length;return!(a.length<i.length-1)&&s?null:H(this,lt,"f").get(a)??null}getExtension(t){var i;return typeof t!="string"?null:(t=(i=t==null?void 0:t.split)==null?void 0:i.call(t,";")[0],(t&&H(this,wt,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:H(this,tt,"f").get(t.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 t of H(this,tt,"f").values())Object.freeze(t);return this}_getTestState(){return{types:H(this,lt,"f"),extensions:H(this,wt,"f")}}}lt=new WeakMap,wt=new WeakMap,tt=new WeakMap;const Ni=new Mi(ei,ti)._freeze();function Ma({onPick:n,title:t,onClose:i,token:a,open:s}){var S;const c=Re.useRef(null),p=Ze(),o=((S=p==null?void 0:p.email)==null?void 0:S.split("@").at(1))??"",h="tyce.ai,tyce.io,torontomu.ca,mindgrub.com,grata.life".split(",").includes(o);Re.useEffect(()=>{if(!c.current)return;const _=c.current,W=U=>{n(U.detail.docs),i()};return _.addEventListener("picker-picked",W),_.addEventListener("picker-canceled",i),()=>{_.removeEventListener("picker-picked",W),_.removeEventListener("picker-canceled",i)}},[a,n,i]);const f=["application/vnd.google-apps.document","application/vnd.google-apps.spreadsheet","application/vnd.google-apps.presentation"],b=Ti[Ai.DOCUMENTS].map(_=>
vendor: 5,818 bytes, line 23
23Ni.getType(_)).filter(Boolean).concat(...f);if(!(!s||!a))return _i.createPortal(ct.jsxs("drive-picker",{ref:c,"oauth-token":a,"app-id":"1041138945233-on4bvtt7bb5pgbe01o2ii1pee493lpii.apps.googleusercontent.com".split("-").at(0),"client-id":"1041138945233-on4bvtt7bb5pgbe01o2ii1pee493lpii.apps.googleusercontent.com",multiselect:!0,title:t,children:[ct.jsx("drive-picker-docs-view",{"include-folders":"true","owned-by-me":"true","mime-types":b,"select-folder-enabled":h.toString()}),ct.jsx("drive-picker-docs-view",{"enable-drives":"true","include-folders":"true","mime-types":b,"select-folder-enabled":h.toString()})]}),document.body,"drive-picker")}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:ii,setPrototypeOf:We,isFrozen:Li,getPrototypeOf:Ci,getOwnPropertyDescriptor:Di}=Object;let{freeze:R,seal:q,create:ai}=Object,{apply:se,construct:pe}=typeof Reflect<"u"&&Reflect;R||(R=function(t){return t});q||(q=function(t){return t});se||(se=function(t,i,a){return t.apply(i,a)});pe||(pe=function(t,i){return new t(...i)});const Nt=j(Array.prototype.forEach),zi=j(Array.prototype.lastIndexOf),Pe=j(Array.prototype.pop),ht=j(Array.prototype.push),Ri=j(Array.prototype.splice),zt=j(String.prototype.toLowerCase),Qt=j(String.prototype.toString),Fe=j(String.prototype.match),vt=j(String.prototype.replace),ji=j(String.prototype.indexOf),Wi=j(String.prototype.trim),G=j(Object.prototype.hasOwnProperty),z=j(RegExp.prototype.test),xt=Pi(TypeError);function j(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return se(n,t,a)}}function Pi(n){return function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return pe(n,i)}}function x(n,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zt;We&&We(n,null);let a=t.length;for(;a--;){let s=t[a];if(typeof s=="string"){const c=i(s);c!==s&&(Li(t)||(t[a]=c),s=c)}n[s]=!0}return n}function Fi(n){for(let t=0;t<n.length;t++)G(n,t)||(n[t]=null);return n}function Z(n){const t=ai(null);for(const[i,a]of ii(n))G(n,i)&&(Array.isArray(a)?t[i]=Fi(a):a&&typeof a=="object"&&a.constructor===Object?t[i]=Z(a):t[i]=a);return t}function gt(n,t){for(;n!==null;){const a=Di(n,t);if(a){if(a.get)return j(a.get);if(typeof a.value=="function")return j(a.value)}n=Ci(n)}function i(){return null}return i}const Ue=R(["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"]),Jt=R(["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"]),te=R(["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"]),Ui=R(["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"]),ee=R(["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"]),Hi=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),He=R(["#text"]),qe=R(["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","
23spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ie=R(["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"]),Be=R(["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"]),Lt=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qi=q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bi=q(/<%[\w\W]*|[\w\W]*%>/gm),Gi=q(/\$\{[\w\W]*/gm),$i=q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yi=q(/^aria-[\-\w]+$/),ni=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vi=q(/^(?:\w+script|data):/i),Xi=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oi=q(/^html$/i),Ki=q(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ge=Object.freeze({__proto__:null,ARIA_ATTR:Yi,ATTR_WHITESPACE:Xi,CUSTOM_ELEMENT:Ki,DATA_ATTR:$i,DOCTYPE_NAME:oi,ERB_EXPR:Bi,IS_ALLOWED_URI:ni,IS_SCRIPT_OR_DATA:Vi,MUSTACHE_EXPR:qi,TMPLIT_EXPR:Gi});const bt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zi=function(){return typeof window>"u"?null:window},Qi=function(t,i){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;
vendor: 7,066 bytes, line 23
23const s="data-tt-policy-suffix";i&&i.hasAttribute(s)&&(a=i.getAttribute(s));const c="dompurify"+(a?"#"+a:"");try{return t.createPolicy(c,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},$e=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function si(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zi();const t=m=>si(m);if(t.version="3.2.6",t.removed=[],!n||!n.document||n.document.nodeType!==bt.document||!n.Element)return t.isSupported=!1,t;let{document:i}=n;const a=i,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:p,Node:o,Element:h,NodeFilter:f,NamedNodeMap:b=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:S,DOMParser:_,trustedTypes:W}=n,U=h.prototype,u=gt(U,"cloneNode"),r=gt(U,"remove"),v=gt(U,"nextSibling"),E=gt(U,"childNodes"),T=gt(U,"parentNode");if(typeof p=="function"){const m=i.createElement("template");m.content&&m.content.ownerDocument&&(i=m.content.ownerDocument)}let k,$="";const{implementation:B,createNodeIterator:Q,createDocumentFragment:yt,getElementsByTagName:Et}=i,{importNode:rt}=a;let D=$e();t.isSupported=typeof ii=="function"&&typeof T=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Wt,ERB_EXPR:Pt,TMPLIT_EXPR:Ft,DATA_ATTR:pi,ARIA_ATTR:li,IS_SCRIPT_OR_DATA:ci,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:ri}=Ge;let{IS_ALLOWED_URI:me}=Ge,O=null;const ue=x({},[...Ue,...Jt,...te,...ee,...He]);let N=null;const fe=x({},[...qe,...ie,...Be,...Lt]);let A=Object.seal(ai(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}})),dt=null,Ut=null,he=!0,Ht=!0,ve=!1,xe=!0,et=!1,Tt=!0,J=!1,qt=!1,Bt=!1,it=!1,At=!1,_t=!1,ge=!0,be=!1;const di="user-content-";let Gt=!0,mt=!1,at={},nt=null;const we=x({},["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 ke=null;const ye=x({},["audio","video","img","source","image","track"]);let $t=null;const Ee=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),It="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",V="http://www.w3.org/1999/xhtml";let ot=V,Yt=!1,Vt=null;const mi=x({},[It,St,V],Qt);let Ot=x({},["mi","mo","mn","ms","mtext"]),Mt=x({},["annotation-xml"]);const ui=x({},["title","style","font","a","script"]);let ut=null;const fi=["application/xhtml+xml","text/html"],hi="text/html";let M=null,st=null;const vi=i.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Xt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(st&&st===e)){if((!e||typeof e!="object")&&(e={}),e=Z(e),ut=fi.indexOf(e.PARSER_MEDIA_TYPE)===-1?hi:e.PARSER_MEDIA_TYPE,M=ut==="application/xhtml+xml"?Qt:zt,O=G(e,"ALLOWED_TAGS")?x({},e.ALLOWED_TAGS,M):ue,N=G(e,"ALLOWED_ATTR")?x({},e.ALLOWED_ATTR,M):fe,Vt=G(e,"ALLOWED_NAMESPACES")?x({},e.ALLOWED_NAMESPACES,Qt):mi,$t=G(e,"ADD_URI_SAFE_ATTR")?x(Z(Ee),e.ADD_URI_SAFE_ATTR,M):Ee,ke=G(e,"ADD_DATA_URI_TAGS")?x(Z(ye),e.ADD_DATA_URI_TAGS,M):ye,nt=G(e,"FORBID_CONTENTS")?x({},e.FORBID_CONTENTS,M):we,dt=G(e,"FORBID_TAGS")?x({},e.FORBID_TAGS,M):Z({}),Ut=G(e,"FORBID_ATTR")?x({},e.FORBID_ATTR,M):Z({}),at=G(e,"USE_PROFILES")?e.USE_PROFILES:!1,he=e.ALLOW_ARIA_ATTR!==!1,Ht=e.ALLOW_DATA_ATTR!==!1,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=e.SAFE_FOR_TEMPLATES||!1,Tt=e.SAFE_FOR_XML!==!1,J=e.WHOLE_DOCUMENT||!1,it=e.RETURN_DOM||!1,At=e.RETURN_DOM_FRAGMENT||!1,_t=e.RETURN_TRUSTED_TYPE||!1,Bt=e.FORCE_BODY||!1,ge=e.SANITIZE_DOM!==!1,be=e.SANITIZE_NAMED_PROPS||!1,Gt=e.KEEP_CONTENT!==!1,mt=e.IN_PLACE||!1,me=e.ALLOWED_URI_REGEXP||ni,ot=e.NAMESPACE||V,Ot=e.MATHML_TEXT_INTEGRATION_POINTS||Ot,Mt=e.HTML_INTEGRATION_POINTS||Mt,A=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(Ht=!1),At&&(it=!0),at&&(O=x({},He),N=[],at.html===!0&&(x(O,Ue),x(N,qe)),at.svg===!0&&(x(O,Jt),x(N,ie),x(N,Lt)),at.svgFilters===!0&&(x(O,te),x(N,ie),x(N,Lt)),at.mathMl===!0&&(x(O,ee),x(N,Be),x(N,Lt))),e.ADD_TAGS&&(O===ue&&(O=Z(O)),x(O,e.ADD_TAGS,M)),e.ADD_ATTR&&(N===fe&&(N=Z(N)),x(N,e.ADD_ATTR,M)),e.ADD_URI_SAFE_ATTR&&x($t,e.ADD_URI_SAFE_ATTR,M),e.FORBID_CONTENTS&&(nt===we&&(nt=Z(nt)),x(nt,e.FORBID_CONTENTS,M)),Gt&&(O["#text"]=!0),J&&x(O,["html","head","body"]),O.table&&(x(O,["tbody"]),delete dt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,$=k.createHTML("")}else k===void 0&&(k=Qi(W,s)),k!==null&&typeof $=="string"&&($=k.createHTML(""));R&&R(e),st=e}},Ae=x({},[...Jt,...te,...Ui]),_e=x({},[...ee,...Hi]),xi=function(e){let l=T(e);(!l||!l.tagName)&&(l={namespaceURI:ot,tagName:"template"});const d=zt(e.tagName),y=zt(l.tagName);return Vt[e.namespaceURI]?e.namespaceURI===St?l.namespaceURI===V?d==="svg":l.namespaceURI===It?d==="svg"&&(y==="annotation-xml"||Ot[y]):!!Ae[d]:e.namespaceURI===It?l.namespaceURI===V?d==="math":l.namespaceURI===St?d==="math"&&Mt[y]:!!_e[d]:e.namespaceURI===V?l.namespaceURI===St&&!Mt[y]||l.namespaceURI===It&&!Ot[y]?!1:!_e[d]&&(ui[d]||!Ae[d]):!!(ut==="application/xhtml+xml"&&Vt[e.namespaceURI]):!1},Y=function(e){ht(t.removed,{element:e});try{T(e).removeChild(e)}catch{r(e)}},pt=function(e,l){try{ht(t.removed,{attribute:l.getAttributeNode(e),from:l})}catch{ht(t.removed,{attribute:null,from:l})}if(l.removeAttribute(e),e==="is")if(it||At)try{Y(l)}catch{}else try{l.setAttribute(e,"")}catch{}},Ie=function(e){let l=null,d=null;if(Bt)e="<remove></remove>"+e;else{const I=Fe(e,/^[\r\n\t ]+/);d=I&&I[0]}ut==="application/xhtml+xml"&&ot===V&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const y=k?k.createHTML(e):e;if(ot===V)try{l=new _().parseFromString(y,ut)}catch{}if(!l||!l.documentElement){l=B.createDocument(ot,"template",null);try{l.documentElement.innerHTML=Yt?$:y}catch{}}const L=l.body||l.documentElement;
vendor: 5,338 bytes, lines 23-24
23return e&&d&&L.insertBefore(i.createTextNode(d),L.childNodes[0]||null),ot===V?Et.call(l,J?"html":"body")[0]:J?l.documentElement:L},Se=function(e){return Q.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Kt=function(e){return e instanceof S&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof b)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Oe=function(e){return typeof o=="function"&&e instanceof o};function X(m,e,l){Nt(m,d=>{d.call(t,e,l,st)})}const Me=function(e){let l=null;if(X(D.beforeSanitizeElements,e,null),Kt(e))return Y(e),!0;const d=M(e.nodeName);if(X(D.uponSanitizeElement,e,{tagName:d,allowedTags:O}),Tt&&e.hasChildNodes()&&!Oe(e.firstElementChild)&&z(/<[/\w!]/g,e.innerHTML)&&z(/<[/\w!]/g,e.textContent)||e.nodeType===bt.progressingInstruction||Tt&&e.nodeType===bt.comment&&z(/<[/\w]/g,e.data))return Y(e),!0;if(!O[d]||dt[d]){if(!dt[d]&&Le(d)&&(A.tagNameCheck instanceof RegExp&&z(A.tagNameCheck,d)||A.tagNameCheck instanceof Function&&A.tagNameCheck(d)))return!1;if(Gt&&!nt[d]){const y=T(e)||e.parentNode,L=E(e)||e.childNodes;if(L&&y){const I=L.length;for(let P=I-1;P>=0;--P){const K=u(L[P],!0);K.__removalCount=(e.__removalCount||0)+1,y.insertBefore(K,v(e))}}}return Y(e),!0}return e instanceof h&&!xi(e)||(d==="noscript"||d==="noembed"||d==="noframes")&&z(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y(e),!0):(et&&e.nodeType===bt.text&&(l=e.textContent,Nt([Wt,Pt,Ft],y=>{l=vt(l,y," ")}),e.textContent!==l&&(ht(t.removed,{element:e.cloneNode()}),e.textContent=l)),X(D.afterSanitizeElements,e,null),!1)},Ne=function(e,l,d){if(ge&&(l==="id"||l==="name")&&(d in i||d in vi))return!1;if(!(Ht&&!Ut[l]&&z(pi,l))){if(!(he&&z(li,l))){if(!N[l]||Ut[l]){if(!(Le(e)&&(A.tagNameCheck instanceof RegExp&&z(A.tagNameCheck,e)||A.tagNameCheck instanceof Function&&A.tagNameCheck(e))&&(A.attributeNameCheck instanceof RegExp&&z(A.attributeNameCheck,l)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(l))||l==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&z(A.tagNameCheck,d)||A.tagNameCheck instanceof Function&&A.tagNameCheck(d))))return!1}else if(!$t[l]){if(!z(me,vt(d,de,""))){if(!((l==="src"||l==="xlink:href"||l==="href")&&e!=="script"&&ji(d,"data:")===0&&ke[e])){if(!(ve&&!z(ci,vt(d,de,"")))){if(d)return!1}}}}}}return!0},Le=function(e){return e!=="annotation-xml"&&Fe(e,ri)},Ce=function(e){X(D.beforeSanitizeAttributes,e,null);const{attributes:l}=e;if(!l||Kt(e))return;const d={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0};let y=l.length;for(;y--;){const L=l[y],{name:I,namespaceURI:P,value:K}=L,ft=M(I),Zt=K;let C=I==="value"?Zt:Wi(Zt);if(d.attrName=ft,d.attrValue=C,d.keepAttr=!0,d.forceKeepAttr=void 0,X(D.uponSanitizeAttribute,e,d),C=d.attrValue,be&&(ft==="id"||ft==="name")&&(pt(I,e),C=di+C),Tt&&z(/((--!?|])>)|<\/(style|title)/i,C)){pt(I,e);continue}if(d.forceKeepAttr)continue;if(!d.keepAttr){pt(I,e);continue}if(!xe&&z(/\/>/i,C)){pt(I,e);continue}et&&Nt([Wt,Pt,Ft],ze=>{C=vt(C,ze," ")});const De=M(e.nodeName);if(!Ne(De,ft,C)){pt(I,e);continue}if(k&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!P)switch(W.getAttributeType(De,ft)){case"TrustedHTML":{C=k.createHTML(C);break}case"TrustedScriptURL":{C=k.createScriptURL(C);break}}if(C!==Zt)try{P?e.setAttributeNS(P,I,C):e.setAttribute(I,C),Kt(e)?Y(e):Pe(t.removed)}catch{pt(I,e)}}X(D.afterSanitizeAttributes,e,null)},gi=function m(e){let l=null;const d=Se(e);for(X(D.beforeSanitizeShadowDOM,e,null);l=d.nextNode();)X(D.uponSanitizeShadowNode,l,null),Me(l),Ce(l),l.content instanceof c&&m(l.content);X(D.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(m){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=null,d=null,y=null,L=null;if(Yt=!m,Yt&&(m="<!-->"),typeof m!="string"&&!Oe(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw xt("dirty is not a string, aborting")}else throw xt("toString is not a function");if(!t.isSupported)return m;if(qt||Xt(e),t.removed=[],typeof m=="string"&&(mt=!1),mt){if(m.nodeName){const K=M(m.nodeName);if(!O[K]||dt[K])throw xt("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof o)l=Ie("<!---->"),d=l.ownerDocument.importNode(m,!0),d.nodeType===bt.element&&d.nodeName==="BODY"||d.nodeName==="HTML"?l=d:l.appendChild(d);else{if(!it&&!et&&!J&&m.indexOf("<")===-1)return k&&_t?k.createHTML(m):m;if(l=Ie(m),!l)return it?null:_t?$:""}l&&Bt&&Y(l.firstChild);const I=Se(mt?m:l);for(;y=I.nextNode();)Me(y),Ce(y),y.content instanceof c&&gi(y.content);if(mt)return m;if(it){if(At)for(L=yt.call(l.ownerDocument);l.firstChild;)L.appendChild(l.firstChild);else L=l;return(N.shadowroot||N.shadowrootmode)&&(L=rt.call(a,L,!0)),L}let P=J?l.outerHTML:l.innerHTML;return J&&O["!doctype"]&&l.ownerDocument&&l.ownerDocument.doctype&&l.ownerDocument.doctype.name&&z(oi,l.ownerDocument.doctype.name)&&(P="<!DOCTYPE "+l.ownerDocument.doctype.name+`>
24`+P),et&&Nt([Wt,Pt,Ft],K=>{P=vt(P,K," ")}),k&&_t?k.createHTML(P):P},t.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};
24Xt(m),qt=!0},t.clearConfig=function(){st=null,qt=!1},t.isValidAttribute=function(m,e,l){st||Xt({});const d=M(m),y=M(e);return Ne(d,y,l)},t.addHook=function(m,e){typeof e=="function"&&ht(D[m],e)},t.removeHook=function(m,e){if(e!==void 0){const l=zi(D[m],e);return l===-1?void 0:Ri(D[m],l,1)[0]}return Pe(D[m])},t.removeHooks=function(m){D[m]=[]},t.removeAllHooks=function(){D=$e()},t}var Ye=si(),w;(function(n){n[n.character=0]="character",n[n.tag=1]="tag",n[n.whitespace=2]="whitespace",n[n.number=3]="number",n[n.entity=4]="entity"})(w||(w={}));var F;(function(n){n[n.equal=0]="equal",n[n.delete=1]="delete",n[n.insert=2]="insert",n[n.none=3]="none",n[n.replace=4]="replace"})(F||(F={}));class le{constructor(t,i,a){g(this,"startInOld");g(this,"startInNew");g(this,"size");this.startInOld=t,this.startInNew=i,this.size=a}get endInOld(){return this.startInOld+this.size}get endInNew(){return this.startInNew+this.size}}const Ji=/^\s*<\/?[^>]+>\s*$/,ta=/<[^\s>]+/,ea=/^(\s|&nbsp;)+$/,ia=/[\w\#@]+/,aa=["<img"];function ce(n){return aa.some(t=>n!==null&&n.startsWith(t))?!1:Ji.test(n)}function na(n){return n=(ta.exec(n)||[""])[0]+(n.endsWith("/>")?"/>":">"),n}function Ct(n){return n==="<"}function oa(n){return n===">"}function ae(n){return n==="&"}function sa(n){return n===";"}function kt(n){return ea.test(n)}function pa(n){return ce(n)?na(n):n}function Dt(n){return/^\d$/.test(n)}function ne(n){return ia.test(n)}function Ve(n,t,i){return n.push(t),n.length>i&&n.shift(),n.length!==i?null:n.join("")}class la{constructor({oldWords:t,newWords:i,startInOld:a,endInOld:s,startInNew:c,endInNew:p,options:o}){g(this,"oldWords");g(this,"newWords");g(this,"startInOld");g(this,"endInOld");g(this,"startInNew");g(this,"endInNew");g(this,"options");g(this,"wordIndices");this.oldWords=t,this.newWords=i,this.startInOld=a,this.endInOld=s,this.startInNew=c,this.endInNew=p,this.options=o,this.wordIndices=new Map}indexNewWords(){this.wordIndices=new Map;let t=[];for(let i=this.startInNew;i<this.endInNew;i++){let a=this.normalizeForIndex(this.newWords[i]),s=Ve(t,a,this.options.blockSize);s!==null&&(this.wordIndices.has(s)?this.wordIndices.get(s).push(i):this.wordIndices.set(s,[i]))}}normalizeForIndex(t){return t=pa(t),this.options.ignoreWhitespaceDifferences&&kt(t)?" ":t}findMatch(){if(this.indexNewWords(),this.removeRepeatingWords(),this.wordIndices.size===0)return null;let t=this.startInOld,i=this.startInNew,a=0,s=new Map;const c=this.options.blockSize;let p=[];for(let o=this.startInOld;o<this.endInOld;o++){let h=this.normalizeForIndex(this.oldWords[o]),f=Ve(p,h,c);if(f===null)continue;let b=new Map;if(!this.wordIndices.has(f)){s=b;continue}for(let S of this.wordIndices.get(f)){let _=(s.has(S-1)?s.get(S-1):0)+1;b.set(S,_),_>a&&(t=o-_-c+2,i=S-_-c+2,a=_)}s=b}return a!==0?new le(t,i,a+c-1):null}removeRepeatingWords(){let t=this.newWords.length+this.options.repeatingWordsAccuracy,i=Array.from(this.wordIndices.entr
24ies()).filter(a=>a[1].length>t).map(a=>a[0]);for(let a of i)this.wordIndices.delete(a)}}class Xe{constructor({action:t,startInOld:i,endInOld:a,startInNew:s,endInNew:c}){g(this,"action");g(this,"startInOld");g(this,"endInOld");g(this,"startInNew");g(this,"endInNew");this.action=t,this.startInOld=i,this.endInOld=a,this.startInNew=s,this.endInNew=c}}const ca={blockSize:0,repeatingWordsAccuracy:0,ignoreWhitespaceDifferences:!1};class Rt{static prepare(){this.state={mode:w.character,currentWord:[],words:[]},this.blockLocations=[]}static convertHtmlToListOfWords(t,i=[]){this.prepare(),this.findBlocks(t,i);const a=!!this.blockLocations.length;let s=!1,c=-1,p;for(let h=0;h<t.length;h++){var o=t[h];if(a){if(c===h){c=-1,s=!1,this.state.currentWord.push(o);const b=this.state.currentWord.join("");if(p!=null&&p.targetBoundaries){const S=b.slice(p==null?void 0:p.targetBoundaries.starts,p==null?void 0:p.targetBoundaries.ends);this.state.words.push([S,b])}else this.state.words.push([b]);this.state.currentWord=[],this.state.mode=w.character,p=void 0;continue}let f=this.blockLocations.find(b=>b.wordBoundaries.starts===h);if(f&&(p=f,this.state.currentWord.length!==0&&(this.state.words.push([this.state.currentWord.join("")]),this.state.currentWord=[]),s=!0,c=p.wordBoundaries.ends),s){this.state.currentWord.push(o),this.state.mode=w.character;continue}}switch(this.state.mode){case w.character:Ct(o)?this.addClearWordSwitchMode("<",w.tag):ae(o)?this.addClearWordSwitchMode(o,w.entity):kt(o)?this.addClearWordSwitchMode(o,w.whitespace):Dt(o)?this.addClearWordSwitchMode(o,w.number):ne(o)&&(this.state.currentWord.length===0||ne(this.state.currentWord[this.state.currentWord.length-1]))?this.state.currentWord.push(o):this.addClearWordSwitchMode(o,w.character);break;case w.tag:oa(o)?(this.state.currentWord.push(o),this.state.words.push([this.state.currentWord.join("")]),this.state.currentWord=[],this.state.mode=w.character):this.state.currentWord.push(o);break;case w.number:this.state.words.push([this.state.currentWord.join("")]),this.state.currentWord=[],Ct(o)?this.addClearWordSwitchMode(o,w.tag):ae(o)?this.addClearWordSwitchMode(o,w.entity):Dt(o)?this.addClearWordSwitchMode(o,w.number):kt(o)?this.state.currentWord.push(o):this.addClearWordSwitchMode(o,w.character);break;case w.whitespace:Ct(o)?this.addClearWordSwitchMode(o,w.tag):ae(o)?this.addClearWordSwitchMode(o,w.entity):Dt(o)?this.addClearWordSwitchMode(o,w.number):kt(o)?this.state.currentWord.push(o):this.addClearWordSwitchMode(o,w.character);break;case w.entity:Ct(o)?this.addClearWordSwitchMode(o,w.tag):Dt(o)?this.addClearWordSwitchMode(o,w.number):kt(o)?this.addClearWordSwitchMode(o,w.whitespace):sa(o)?(this.state.currentWord.length!==0&&(this.state.currentWord.push(o),this.state.words.push([this.state.currentWord.join("")])),this.state.currentWord=[],this.state.mode=w.character):ne(o)?this.state.currentWord.push(o):this.addClearWordSwitchMode(o,w.character);break}}return this.state.currentWord.length!==0&&this.state.words.push([this.state.currentWord.join("")]),this.state.words}static addClearWordSwitchMode(t,i){this.state.currentWord.length!==0&&this.state.words.push([this.state.currentWord.join("")]),this.state.currentWord=[t],this.state.mode=i}static findBlocks(t,i){i.forEach(a=>{const s=t.matchAll(a.exp);for(let c of s)if(c.index!==void 0){if(this.blockLocations.find(o=>o.wordBoundaries.starts<=(c.index||0)&&(c.index||0)<=o.wordBoundaries.ends))throw new Error("One or more block expressions result in a text sequence that overlaps. Current expression: "+a.exp.toString());const p=a.compareBy&&[...c[0].matchAll(a.compareBy)][0];p&&p.index!==void 0?this.blockLocations.push({wordBoundaries:{starts:c.index,ends:c.index+c[0].length-1},targetBoundaries:{starts:p.index,ends:p.index+p[0].length}}):this.blockLocations.push({wordBoundaries:{starts:c.index,ends:c.index+c[0].length-1}})}})}}g(Rt,"state",{mode:w.character,currentWord:[],words:[]}),g(Rt,"blockLocations");const ra=4;class da{constructor(t,i){g(this,"content");g(this,"newText");g(this,"oldText");g(this,"specialTagDiffStack");g(this,"newWords");g(this,"oldWords");g(this,"orinalWordsInNew");g(this,"orinalWordsInOld");g(this,"matchGranularity");g(this,"blockExpressions");g(this,"repeatingWordsAccuracy");g(this,"ignoreWhiteSpaceDifferences");g(this,"orphanMatchThreshold");this.content=[],this.newText=i,this.oldText=t,this.specialTagDiffStack=[],this.newWords=[],this.orinalWordsInNew=new Map,this.oldWords=[],this.orinalWordsInOld=new Map,this.matchGranularity=0,this.blockExpressions=[],this.repeatingWordsAccuracy=1,this.ignoreWhiteSpaceDifferences=!1,this.orphanMatchThreshold=0,this.addBlockExpression=this.addBlockExpression.bind(this)}
24diff(){if(this.oldText===this.newText)return this.newText;this.splitInputsIntoWords(),this.matchGranularity=Math.min(ra,this.oldWords.length,this.newWords.length);let t=this.operations();this.orinalWordsInOld.forEach((i,a)=>{this.oldWords[a]=i}),this.orinalWordsInNew.forEach((i,a)=>{this.newWords[a]=i});for(let i of t)this.performOperation(i);return this.content.join("")}addBlockExpression(t){this.blockExpressions.push(t)}splitInputsIntoWords(){const t=Rt.convertHtmlToListOfWords(this.oldText,this.blockExpressions);t.forEach((a,s)=>{a[1]&&this.orinalWordsInOld.set(s,a[1])}),this.oldWords=t.map(a=>a[0]),this.oldText="";const i=Rt.convertHtmlToListOfWords(this.newText,this.blockExpressions);i.forEach((a,s)=>a[1]&&this.orinalWordsInNew.set(s,a[1])),this.newWords=i.map(a=>a[0]),this.newText=""}performOperation(t){switch(t.action){case F.equal:this.processEqualOperation(t);break;case F.delete:this.processDeleteOperation(t,"diffdel");break;case F.insert:this.processInsertOperation(t,"diffins");break;case F.none:break;case F.replace:this.processReplaceOperation(t);break}}processReplaceOperation(t){this.processDeleteOperation(t,"diffmod"),this.processInsertOperation(t,"diffmod")}processInsertOperation(t,i){let a=this.newWords.filter((s,c)=>c>=t.startInNew&&c<t.endInNew);this.insertTag("ins",i,a)}processDeleteOperation(t,i){let a=this.oldWords.filter((s,c)=>c>=t.startInOld&&c<t.endInOld);this.insertTag("del",i,a)}processEqualOperation(t){let i=this.newWords.filter((a,s)=>s>=t.startInNew&&s<t.endInNew);this.content.push(i.join(""))}insertTag(t,i,a){let s,c,p,o,h;for(o="",p=0,s=a.length;!(p>=s||(c=this.consecutiveWhere(p,a,f=>!ce(f)),p+=c.length,c.length!==0&&(o+=`<${t} class="${i}">${c.join("")}</${t}>`),p>=s));)h=this.consecutiveWhere(p,a,ce),p+=h.length,o+=h.join("");this.content.push(o)}consecutiveWhere(t,i,a){let s,c,p,o,h,f;for(i=i.slice(t,+i.length+1||9e9),o=void 0,p=c=0,h=i.length;c<h&&(f=i[p],s=a(f),s===!0&&(o=p),s!==!1);p=++c);return o!=null?i.slice(0,+o+1||9e9):[]}operations(){let t=0,i=0,a=[],s=this.matchingBlocks();s.push(new le(this.oldWords.length,this.newWords.length,0));let c=this.removeOrphans(s);for(let p of c){let o=t===p.startInOld,h=i===p.startInNew,f;!o&&!h?f=F.replace:o&&!h?f=F.insert:o?f=F.none:f=F.delete,f!==F.none&&a.push(new Xe({action:f,startInOld:t,endInOld:p.startInOld,startInNew:i,endInNew:p.startInNew})),p.size!==0&&a.push(new Xe({action:F.equal,startInOld:p.startInOld,endInOld:p.endInOld,startInNew:p.startInNew,endInNew:p.endInNew})),t=p.endInOld,i=p.endInNew}return a}*removeOrphans(t){let i=null,a=null;for(let s of t){if(a===null){i=new le(0,0,0),a=s;continue}if((i==null?void 0:i.endInOld)===a.startInOld&&i.endInNew===a.startInNew||a.endInOld===s.startInOld&&a.endInNew===s.startInNew){yield a,a=s;continue}let c=(f,b)=>f+b.length,p=this.oldWords.slice(i==null?void 0:i.endInOld,s.startInOld).reduce(c,0),o=this.newWords.slice(i==null?void 0:i.endInNew,s.startInNew).reduce(c,0);this.newWords.slice(a.startInNew,a.endInNew).reduce(c,0)>Math.max(p,o)*this.orphanMatchThreshold&&(yield a),i=a,a=s}yield a}matchingBlocks(){let t=[];return this.findMatchingBlocks({startInOld:0,endInOld:this.oldWords.length,startInNew:0,endInNew:this.newWords.length,matchingBlocks:t}),t}findMatchingBlocks({startInOld:t,endInOld:i,startInNew:a,endInNew:s,matchingBlocks:c}){let p=this.findMatch({startInOld:t,endInOld:i,startInNew:a,endInNew:s});p!==null&&(t<p.startInOld&&a<p.startInNew&&this.findMatchingBlocks({startInOld:t,endInOld:p.startInOld,startInNew:a,endInNew:p.startInNew,matchingBlocks:c}),c.push(p),p.endInOld<i&&p.endInNew<s&&this.findMatchingBlocks({startInOld:p.endInOld,endInOld:i,startInNew:p.endInNew,endInNew:s,matchingBlocks:c}))}findMatch({startInOld:t,endInOld:i,startInNew:a,endInNew:s}){for(let c=this.matchGranularity;c>0;c--){let p=ca;p.blockSize=c,p.repeatingWordsAccuracy=this.repeatingWordsAccuracy,p.ignoreWhitespaceDifferences=this.ignoreWhiteSpaceDifferences;let h=new la({oldWords:this.oldWords,newWords:this.newWords,startInOld:t,endInOld:i,startInNew:a,endInNew:s,options:p}).findMatch();if(h!==null)return h}return null}}const Ke=(n,t,{blocksExpression:i}={})=>{const a=new da(n,t);
24return i&&i.forEach(s=>a.addBlockExpression(s)),a.diff()};function re(n,t=0){let i=" ".repeat(t*4),a="";if(n instanceof DocumentFragment){for(const o of Array.from(n.childNodes))a+=re(o,t+1);return a}if(n.nodeType===n.TEXT_NODE)return i+n.textContent+`
25`;const s=n.tagName.toLowerCase();if(["BR","IMG"].includes(n.tagName))return`<${s}/>`;const p=`</${s}>`;a+=i+n.outerHTML.replace(n.innerHTML+p,"")+`
26`;for(const o of Array.from(n.childNodes))a+=re(o,t+1);return n.getAttribute("id")&&(a+=i+`<!-- end of ${s} with id: ${n.getAttribute("id")} -->
27`),a+=i+p+`
28`,a}const Na=n=>{if(!n)return;const t=oe.fromSchema(n.schema),i=n.state.doc.content,a=t.serializeFragment(i);return`<div>${re(a)}</div>`};function ma(n,t){let i;if(t)return n.descendants((a,s)=>a.attrs.id===t?(i={pos:s,node:a},!1):!0),i}function La(n,t,i){const{state:a,view:s,schema:c}=n;let{node_id:p,operation_type:o,content:h}=t;if(!p)return console.error("Missing node_id for AI edit:",t),je.error("Edit Error",{description:"No target node ID provided."}),i;let f=ma(i.doc,p);if(!i.doc.textContent){const B=i.doc.nodeAt(1);f={node:B,pos:1},p=B.attrs.id,o="replace"}if(!f)return console.error(`Node with ID "${p}" not found in the document.`),je.error("Edit Error",{description:`Target node (ID: ${p}) not found. It might have been deleted.`}),i;let b;const{pos:S,node:_}=f;o==="delete"||o==="replace"?b={from:S,to:S+_.nodeSize}:b={from:S+_.nodeSize,to:S+_.nodeSize};const W=i||a.tr,U=crypto.randomUUID(),u=oe.fromSchema(n.schema),E=Ii.fromSchema(n.schema).parse(Si(h)).children.at(0);h=u.serializeNode(E).innerHTML;let T="",k=document.getElementById(p);if(!k){const B=oe.fromSchema(n.schema),Q=n.$doc.querySelector("table",{id:p});Q&&(k=B.serializeNode(Q.node))}o==="replace"||o==="delete"?T=Ye.sanitize(Ke((k==null?void 0:k.outerHTML)??"",h,{blocksExpression:[{exp:/<span style=".*">.*<\/span>/g}]})):T=Ye.sanitize(Ke("",h));const $=c.nodes.AIEdit.create({"data-ai-edit-id":U,operation_type:o,addition:o!=="delete"?h:"",deletion:(k==null?void 0:k.outerHTML)??"",changes:T});return W.setMeta("preventSave",!0),W.replaceWith(b.from,b.to,$),i||s.dispatch(W),console.log(`Applied AI Edit (ID: ${U}) for Node ID: ${p} at range [${b.from}, ${b.to}]`),W}function Ca(n,t,i){const{state:a}=n.view,s=a.doc.nodeAt(t);if(!s||s.type.name!=="AIEdit")return console.warn(`AIEditPlugin: Node at pos ${t} is not the expected edit. Cannot accept.`,s),i;const c=document.createElement("div");c.innerHTML=s.attrs.addition;let p;c.innerHTML?p=Je(c.innerHTML,n.view.state.schema):p=Qe.empty;let o=a.tr;if(i&&(o=i),o=o.replaceWith(t,t+s.nodeSize,p),n.$pos(t).node.type.name==="listItem"){const h=n.$pos(t).node.children.at(0);(h==null?void 0:h.content.size)===0&&(o=o.deleteRange(t-2,t-1))}return i||n.view.dispatch(o),o}function Da(n,t,i){var h;const{state:a}=n.view,s=a.doc.nodeAt(t);if(!s||s.type.name!=="AIEdit")return console.warn(`AIEditPlugin: Node at pos ${t} is not the expected edit. Cannot reject.`,s),i;const c=document.createElement("div");if(c.innerHTML=s.attrs.deletion,c.innerHTML&&n.$pos(t).node.type.name==="tableCell"){const f=Array.from(((h=c.firstElementChild)==null?void 0:h.children)??[]);for(const b of f)(b==null?void 0:b.tagName)==="BR"&&b.classList.contains("ProseMirror-trailingBreak")&&b.remove()}let p=Qe.empty;s.attrs.operation_type==="replace"&&c.innerHTML&&(p=Je(c.innerHTML,n.view.state.schema));let o=a.tr;if(i&&(o=i),o=o.replaceWith(t,t+s.nodeSize,p),o.setMeta("preventSave",!0),n.$pos(t).node.type.name==="listItem"){const f=n.$pos(t).node.children.at(0);(f==null?void 0:f.content.size)===0&&(o=o.join(t))}return i||n.view.dispatch(o),o}export{Sa as F,Ma as G,Ia as I,Aa as a,Oi as b,_a as c,Ca as d,La as e,Na as g,Ye as p,Da as r,Oa as u};
29
30//# debugId=b2c06ad9-98e9-5449-9640-28e6bf17565d

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.